Specifications
CAVR-4
Part 2. Compiler reference
Compiler options
185
-l -l[a|A|b|B|c|C|D][N][H] {filename|directory}
By default, the compiler does not generate a listing. Use this option to generate a listing
to a file.
The following modifiers are available:
* This makes the list file less useful as input to the assembler, but more useful for reading by a
human.
If a filename is specified, the compiler stores the output in that file.
If a
directory is specified, the compiler stores the output in that directory, in a file with
the extension
lst. The filename will be the same as the name of the compiled source
file, unless a different name has been specified with the option
-o, in which case that
name will be used.
To specify the working directory, replace
directory with a period (.).
Example 1
To generate a listing to the file
list.lst, use:
iccavr prog -l list
Option modifier Description
a Assembler list file
A Assembler file with C or C++ source as comments
b Basic assembler list file. This file has the same contents as a list file
produced with -la, except that none of the extra compiler
generated information (runtime model attributes, call frame
information, frame size information) is included
*
B Basic assembler list file. This file has the same contents as a list file
produced with -lA, except that none of the extra compiler
generated information (runtime model attributes, call frame
information, frame size information) is included
*
c C or C++ list file
C (default) C or C++ list file with assembler source as comments
D C or C++ list file with assembler source as comments, but without
instruction offsets and hexadecimal byte values
N No diagnostics in file
H Include source lines from header files in output. Without this
option, only source lines from the primary source file are included
Table 47: Generating a compiler list file (-l)