This is a general question but in the context of avr-gcc and AS7.
Lets suppose that I have a block of code that I want to test. I am concerned about execution time and memory footprint. So, I would like to write a little test program and run it through the simulator while tracking it through a disassembled code listing.
How do folks do this? When I try, it all gets optimized away because results are never used for anything. I'm a bit reluctant to just declare everything as volatile, thinking that it would not represent what happens in the final application.
Am I concerned about nothing? How do others do this?
Thanks
Jim