Skip to main content
Graduate II
August 3, 2024
Solved

Data types supported and definition

  • August 3, 2024
  • 1 reply
  • 2439 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

    1 reply

    TDKAnswer
    Super User
    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

    RickoAuthor
    Graduate II
    August 4, 2024

    Thank you @TDK