User guide
Nios II IDE Help System
Optimization Level —Configures the compiler optimization
level. Options are -O0 to -O3. The compiler optimizes for both
size and speed.
Debug Level —Configures the debug level.
Include Paths —Lists where the compiler searches for C
header files. The Nios II IDE creates a search path including
the project directory, device driver directories, the Newlib
standard C library, etc. Use Include Paths to specify
additional paths to find files in other locations. To add an
include path, click New and enter the path. The paths are
searched in the order they appear from top to bottom. To
modify the search order, click on a list entry then click Move
Up and Move Down accordingly.
Enable All Warnings (-Wall)—Enables additional warnings
when compiling.
o Linker—Displays linker flags configured within this category for the nios2-
elf-gcc compiler command.
General—Configures known flags for the linker. For additional
information on linker flags, type nios2-elf-ld --help on a command
line or see the Nios II documentation located at <Nios II EDS install
path>/documents/gnu-tools/binutils/ld.html.
Error Parser Tab
This tab gives advanced users control over which types of build errors the Nios II IDE
displays in the Problems view.
Note: Altera recommends leaving these settings at their default values.
Binary Parser Tab
This tab allows advanced users to choose which binary parser to use to read build files
in the IDE.
Note: Altera recommends using the GNU Elf Parser.
This section describes the configuration settings tabs.
Note: Although you configure these settings on a per-project basis, they also apply
when you build an individual source file.
Tool Settings Tab
Clicking on an item on the left-hand side of the tab displays options for that item in the
right side of the tab.
Nios II Compiler—Displays flags configured within this category for the nios2-
elf-gcc compiler command.
o Preprocessor—Defines symbols for the nios2-elf-gcc preprocessor.
Several advanced HAL options are specified as preprocessor options.
Defined Symbols—Specifying a symbol here is equivalent to a
#define macro in source code, or supplying -D arguments on the
command line. You can define symbols directly, for example
THING_TO_DEFINE, or as equivalents, such as PI=3.14159.
116