Hi!
How do you get a list of code produced by the compiler?
An example:
6c: 9c 01 movw r18, r24
6e: 21 50 subi r18, 0x01 ; 1
70: 30 40 sbci r19, 0x00 ; 0
How can I see what my compiler generates as assembly code like above?
Thanks!
You can dump the .hex file in Assembler:
avr-objdump -j .sec1 -d -m avr yourdump.hex
There are some other command-line options to interleave source with the assembler.
Ok, thanks, but where do I find avr?
wasmuaria:
Ok, thanks, but where do I find avr?
It's in the Arduino installation. If you turn on verbose build logging you will see all the commands that the IDE uses to compile and link your program. On my Mac the avr tools are in:
"/Applications/Arduino\ 1.0.5.app/Contents/Resources/Java/hardware/tools/avr/bin".