User guide

GUI Reference
C/C++ Build Page (Properties Dialog Box)
You open this properties page by clicking C/C++ Build in the left-hand pane of the
Properties dialog box for Nios II C/C++ application, Nios II system library, and Nios II
C/C++ library projects.
This page allows you to specify compilation, preprocessor, and linking options for the nios2-
elf-gcc compiler and linker. The page is organized in the following sections.
Active Configurations
This section identifies the current configuration. Although you specify these configuration
settings for the project as a whole, the settings also apply to building an individual file.
Project Type—Displays the project type Nios II Executable. (This value is read
only.)
Configuration—Specifies the configuration to build. The Nios II IDE allows you to
control groups of related compilation options as a single build configuration. By
default, there are two build configurations: Release and Debug.
Manage—Allows you to add or delete build configurations.
Configuration Settings
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.
o Nios II Compiler—Displays flags configured within this category for the
nios2-elf-gcc compiler command.
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.
Undefined Symbols —Specifying a symbol here is equivalent
to a #undefine macro in source code.
General—Configures known flags for the compiler. For a complete list
of flags, type nios2-elf-gcc -v --help on a command line or refer
to the GNU tools documentation included with the Nios II Embedded
Design Suite (EDS).
Compiler Flags —Allows additional command line flags to
pass to the compiler.
115