Visible to Intel only — GUID: mwh1416946696947
Ixiasoft
Visible to Intel only — GUID: mwh1416946696947
Ixiasoft
4.4.3.4. Creating a Custom Version of newlib
To create a custom compiled version of newlib, set a BSP setting to the desired compiler flags. If you are using nios2-bsp, type the following command:
nios2-bsp hal my_bsp --set hal.custom_newlib_flags "-O0 -pg"
Because newlib uses the open source configure utility, its build flow differs from other files in the BSP. When Makefile builds the BSP, it runs the configure utility. The configure utility creates a makefile in the build directory, which compiles the newlib source. The newlib library files are copied to the BSP directory named newlib. The newlib source files are not copied to the BSP.
nios2-elf-gcc --print-multi-lib
For more information about Nios II specific flags, refer to the "Nios II Options" section in the GCC online documentation.