Neculai Community Member

  • Member since Jun 2nd 2020
Last Activity

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Neculai -

    Replied to the thread Prevent const variables optimization.

    Hi, This is an example that shows that the optimization done by the compiler on the "const" variables is not necessary. // serial_number is placed in the flash section at FLASH_APPL_CONFIG_ADDR const uint32_t serial_number
  • Neculai -

    Posted the thread Prevent const variables optimization.

    Hi, I want to prevent the compiler from optimizing for const variables. Is there an attribute that must be specified when declaring a const variable to instruct the compiler in this regard? Best regards, Neculai