Atmel studio / GCC - oprimalizace

Jan Waclawek konfera na efton.sk
Středa Duben 1 15:22:42 CEST 2020


>Este upozornujem na dramaticku zmenu spravania delayov z delay.h pri -O0 -
>vid dokumentaciu k avr-libc (konkretne k tomu delay.h).

https://www.nongnu.org/avr-libc/user-manual/group__util__delay.html

Note
    In order for these functions to work as intended, compiler
optimizations must be enabled, and the delay time must be an expression
that is a known constant at compile-time. If these requirements are not
met, the resulting delay will be much longer (and basically
unpredictable), and applications that otherwise do not use floating-point
calculations will experience severe code bloat by the floating-point
library routines linked into the application.


Další informace o konferenci Hw-list