fredvermejo wrote: >Hi! Everybody! > >I\ufffdm using GNUARM 4.0.1 and when I run my code step by step (using >Insight, OCDRemote and a parallel wiggler), the steps showed at >Insight window don\ufffdt follow a logical sequence, the mark jumps to >lines (down and up) although the program works fine. >There is something wrong with my parameters to generate the code??? >I already have used -O0 and -O2 and the result is the same. >Somebody have experienced something like that? > > > Yes, but when I located _all_ the -O2 or -Os optimization compiler flags and changed them to -O0, everything worked as expected. You have to remember that the ARM code uses conditional execution instructions. These opcodes conditionally will execute based on a condition flag (Zero, Carry, no Carry, etc). While debugging this type of code, you will have counter-intuitive behavior. Try turning on a mixed source + assembly view in the debugger and take a hard look at the underlying code. TomW >Thanks in advance. >Fred > > > > > > > >Yahoo! Groups Links > > > > > > > > -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net, http://cyberiansoftware.com "Windows? No thanks, I have work to do..." ----------------------------------------------------
Message
Re: [lpc2000] Insight
2005-11-17 by Tom Walsh
Attachments
- No local attachments were found for this message.