Site Search

When using the Small C library, the printf() function does not display floating point data. What do you think?

Nios II

If you use the "Small C library", the printf() family of functions cannot handle floating point data.
(%f, %g options are not supported)

For details, please refer to the information at the following URL.
 https://www.altera.co.jp/support/support-resources/knowledge-base/solutions/rd03232005_29.html
 https://www.altera.com/en_US/pdfs/literature/hb/nios2/n2sw_nii52004.pdf

If you enable the "Small C library" option in the Nios II IDE's system library properties, the system library will now use the reduced Newlib ANSI C standard library.
In that case the printf() family of functions (printf(), fprintf(), sprintf(), etc.) will no longer support floating point data.
This minified library is optimized for smaller memory size at the expense of speed.



Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.