Specifications

hal.make.bsp_cflags_optimization
Identifier: BSP_CFLAGS_OPTIMIZATION
Type: Unquoted string
Default Value: -O0
Destination File: BSP makefile
Description: C/C++ compiler optimization level. -O0 = no optimization, -O2 = normal optimization,
etc. -O0 is recommended for code that you want to debug since compiler optimization can remove
variables and produce nonsequential execution of code while debugging. This setting defines the value
of BSP_CFLAGS_OPTIMIZATION in Makefile.
Restriction: none
hal.make.bsp_cflags_undefined_symbols
Identifier: BSP_CFLAGS_UNDEFINED_SYMBOLS
Type: Unquoted string
Default Value: none
Destination File: BSP makefile
Description: Preprocessor macros to undefine. Undefined macros are similar to defined macros, but
replicate the #undef directive in source code. To undefine the macro FOO use the syntax -u FOO in this
setting. This is equivalent to #undef FOO in a source file. Note: the syntax differs from macro
definition (there is a space, i.e. -u FOO versus -DFOO). Macros defined with this setting are applied to
all .S, .c, and C++ files in the BSP. This setting defines the value of
BSP_CFLAGS_UNDEFINED_SYMBOLS in the BSP Makefile.
Restriction: none
hal.make.bsp_cflags_user_flags
Identifier: BSP_CFLAGS_USER_FLAGS
Type: Unquoted string
Default Value: none
Destination File: BSP makefile
Description: Custom flags passed to the compiler when compiling C, C++, and .S files. This setting
defines the value of BSP_CFLAGS_USER_FLAGS in Makefile.
Restriction: none
hal.make.bsp_cflags_warnings
Identifier: BSP_CFLAGS_WARNINGS
Type: Unquoted string
Default Value: -Wall
Destination File: BSP makefile
Description: C/C++ compiler warning level. -Wall is commonly used.This setting defines the value of
BSP_CFLAGS_WARNINGS in Makefile.
Restriction: none
NII5V2
2015.05.14
Settings Reference
15-51
Nios II Software Build Tools Reference
Altera Corporation
Send Feedback