Atmel CAVR-4 Manual De Usuario
![Atmel](https://files.manualsbrain.com/attachments/0369829915bda09f9c2e00fb805a7753579683b5/common/fit/150/50/8d2bf08978ec3e5bc63f4343ac5e91ce8d0e40045619fa520d910d64af8f/brand_logo.png)
CAVR-4
Part 2. Compiler reference
Compiler options
175
Production version:
iccavr prog
Test version:
iccavr prog -DTESTVER
To set the equivalent option in IAR Embedded Workbench, select
Project>Options>C/C++ Compiler>Preprocessor.
Project>Options>C/C++ Compiler>Preprocessor.
--debug, -r
--debug
-r
Use the
--debug
or
-r
option to make the compiler include information required by the
IAR C-SPY™ Debugger and other symbolic debuggers in the object modules.
Note: Including debug information will make the object files larger than otherwise.
To set the equivalent option in IAR Embedded Workbench, select
Project>Options>C/C++ Compiler>Output.
Project>Options>C/C++ Compiler>Output.
--dependencies
--dependencies=[i|m] {filename|directory}
Use this option to make the compiler write information to a file about each source code
file opened by the compiler. The following modifiers are available:
file opened by the compiler. The following modifiers are available:
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
i
. 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 (
.
).
If
--dependencies
or
--dependencies=i
is used, the name of each opened source
file, including the full path, if available, is output on a separate line. For example:
c:\iar\product\include\stdio.h
d:\myproject\include\foo.h
If
--dependencies=m
is used, the output uses makefile style. For each source file, one
line containing a makefile dependency rule is produced. Each line consists of the name
of the object file, a colon, a space, and the name of a source file.
of the object file, a colon, a space, and the name of a source file.
Option modifier
Description
i
Lists only the names of files (default)
m
Lists in makefile style
Table 44: Generating a list of dependencies (--dependencies)