5.2.2 Syntax
The general command-line usage of
avr-objdump
is:avr-objdump options OBJFILE...The OBJFILE… are the
object files to be examined. When you specify archives, avr-objdump shows information on each
of the member object files.
For AVR ELF files only,
the -Pmem-usage option will show program and data memory usage in bytes
and as a percentage of the memory space available.
A common usage of this tool is to obtain a full list file for the entire
program. To do this, use the compiler’s
-g option when you build the
project, then call the avr-objdump application with a command similar to the
following.avr-objdump -SD -l a.out > avr.lstThis
will create an avr.lst listing
file from the default compiler output file, showing the original C source code and line
number information in the listing.