HardScenarioEmbedded C
Code works at -O0 but fails at -O2. What do you suspect?
This answer is part of Pro
12 of 70 Embedded Engineer answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousA variable modified in an ISR is not seen by the main loop. Why?Next What is the difference between a microprocessor and a microcontroller?