Visible to Intel only — GUID: wnh1642639251734
Ixiasoft
Visible to Intel only — GUID: wnh1642639251734
Ixiasoft
7.11. Reducing Code Footprint in Embedded Systems
The HAL environment is designed to include only those features that you request, minimizing the total code footprint. If your Nios® V hardware system contains exactly the peripherals used by your program, the HAL contains only the drivers necessary to control the hardware.
The following sections describe options to consider when you need to further reduce code size. Implementing the options in the following sections entails making changes to BSP settings.
For more information about manipulating BSP settings, refer to the HAL BSP Settings.
Section Content
Apply Compiler Flags
Use Small Variant Device Drivers
Reduce the File Descriptor Pool
Use /dev/null
Use a Smaller File I/O Library
Use the Minimal Character-Mode API
Eliminate Unused Device Drivers
Use the Picolibc Library
Eliminate Unused alt_load()
Eliminate Unneeded Exit Code