Skip to main content
Senior
August 3, 2024
Solved

Data types supported and definition

  • August 3, 2024
  • 2 replies
  • 2535 views

Hi,

where can I find the data types supported by CubeIDE compiler, the documentation also specifying their size/ranges?

Thank you

 

This topic has been closed for replies.
Best answer by TDK

CubeIDE uses the open source GCC compiler, which supports all standard C data styles.

Mostly, you work with:

uint8_t - 1 byte - 0 to 255
uint16_t - 2 bytes - 0 to 65535
uint32_t - 4 bytes - 0 to 4294967295

Less commonly, you work with the signed variants.

GCC, the GNU Compiler Collection - GNU Project

2 replies

TDK
TDKBest answer
August 3, 2024

CubeIDE uses the open source GCC compiler, which supports all standard C data styles.

Mostly, you work with:

uint8_t - 1 byte - 0 to 255
uint16_t - 2 bytes - 0 to 65535
uint32_t - 4 bytes - 0 to 4294967295

Less commonly, you work with the signed variants.

GCC, the GNU Compiler Collection - GNU Project

"If you feel a post has answered your question, please click ""Accept as Solution""."
RickoAuthor
Senior
August 4, 2024

Thank you @TDK