Re: Opinions on Atmel Studio4 sw?



Martin Griffith wrote:

The simulator/debug seems to miss single stepping through procedures,
like my "TwiddlePORTD" routine, just appearing to ignore them in my
main while(1) loop. PORTD does update, so I'm wondering if I've missed
a menu somewhere for showing this?

I don't know Atmel Studio, but I know GCC and maybe you compiled it with
optimizing settings (e.g. -O3), which can confuse the debugger, because
there is not always a 1:1 mapping between C code and assembler after
optimizing. Try compiling it in debug mode, e.g. with -O0 -g3.

--
Frank Buss, fb@xxxxxxxxxxxxx
http://www.frank-buss.de, http://www.it4-systems.de
.



Relevant Pages

  • Re: Opinions on Atmel Studio4 sw?
    ... PORTD does update, so I'm wondering if I've missed ... optimizing settings, which can confuse the debugger, because ... Try compiling it in debug mode, ... I will try to get my head around GCC and make files. ...
    (comp.arch.embedded)
  • Re: Opinions on Atmel Studio4 sw?
    ... PORTD does update, so I'm wondering if I've missed ... I don't know Atmel Studio, but I know GCC and maybe you compiled it with ... optimizing settings, which can confuse the debugger, because ... Try compiling it in debug mode, ...
    (comp.arch.embedded)
  • Re: speed problems
    ... > First off you're using exernal programs here for decompression. ... > trade off of making a system call vs internal implementation. ... > If I read this correctly you're compiling this regex every time you're ... > going through the for loop. ...
    (comp.lang.python)
  • Re: removing a loop cause it to go at half the speed?
    ... array for the operation caused the whole program to spend twice the time to complete. ... If the loop is included it takes about 7.48 seconds to complete, but when removed it takes about 11.48 seconds. ... Try measuring without compiling with optimizations. ...
    (comp.unix.programmer)
  • Re: algorithm by eratosthenos
    ... I can't see how I would make the main control for this. ... is a for loop and a test condition. ... If you post to comp.lang.c, please post minimal, compiling ...
    (comp.lang.c)