Search code examples
atmelstudio

How can i disable in Atmel Studio the compiler optimization?


I have a problem when i'm using static functions because after rebuild/build the compiler does not generate the object code of this functions ( i see that because assembler code of this functions is not generated in .lss file ). How can i disable compiler optimization to avoid this issue.


Solution

  • Please see the following link.

    https://www.microchip.com/webdoc/GUID-ECD8A826-B1DA-44FC-BE0B-5A53418A47BD/index.html?GUID-9241847D-2474-41F8-86D0-BD8BCD80BC8E

    Under the Toolchain settings of the current project you can select the optimization via a simple drop-down list.