simulate avr registers in linux & win & output GCC

simulate avr registers in linux & win & output GCC....

It would make sence to me if the arduino software output gcc code as a option and it allready goes to the gcc compiler so their then could be a compiler option to generate elf files that could allow a programmer to step through their code and watch registers change values etc.

How could I do this is their a tutorial? :o :smiley: :wink: