Specifications
hal.enable_reduced_device_drivers
• Identifier: ALT_USE_SMALL_DRIVERS
• Type: Boolean assignment
• Default Value: 0
• Destination File: public.mk
• Description: Certain drivers are compiled with reduced functionality to reduce code footprint. Not all
drivers observe this setting. If true, adds -DALT_USE_SMALL_DRIVERS to ALT_CPPFLAGS in public.mk.
Typically, drivers support this setting with a polled mode. For example, the altera_avalon_uart and
altera_avalon_jtag_uart reduced drivers operate in polled mode. Several device drivers are disabled
entirely in reduced drivers mode. These include the altera_avalon_cfi_flash,
altera_avalon_epcs_flash_controller, and altera_avalon_lcd_16207 drivers. As a result, certain API
routines fail (HAL flash access routines). You can define a symbol provided by each driver to prevent it
from being removed.
• Restriction: none
hal.enable_runtime_stack_checking
• Identifier: ALT_STACK_CHECK
• Type: Boolean assignment
• Default Value: 0
• Destination File: public.mk
• Description: Turns on HAL runtime stack checking feature. Enabling this setting causes additional
code to be placed into each subroutine call to generate an exception if a stack collision occurs with the
heap or statically allocated data. If true, adds -DALT_STACK_CHECK and -fstack-check to
ALT_CPPFLAGS in public.mk.
• Restriction: none
hal.enable_sim_optimize
• Identifier: ALT_SIM_OPTIMIZE
• Type: Boolean assignment
• Default Value: 0
• Destination File: public.mk
• Description: The BSP is compiled with optimizations to speedup HDL simulation such as initializing
the cache, clearing the .bss section, and skipping long delay loops. If true, adds -DALT_SIM_OPTIMIZE
to ALT_CPPFLAGS in public.mk.
• Restriction: When this setting is true, the BSP cannot run on hardware.
hal.enable_small_c_library
• Identifier: none
• Type: Boolean assignment
• Default Value: 0
• Destination File: public.mk
• Description: Causes the small newlib (C library) to be used. This reduces code and data footprint at
the expense of reduced functionality. Several newlib features are removed such as floating-point
support in printf(), stdin input routines, and buffered I/O. The small C library is not compatible
with Micrium
MicroC/OS-II. If true, adds -msmallc to ALT_LDFLAGS and adds -DSMALL_C_LIB to ALT_CPPFLAGS in
public.mk.
• Restriction: none
NII5V2
2015.05.14
Settings Reference
15-59
Nios II Software Build Tools Reference
Altera Corporation
Send Feedback