Forum Discussion
Altera_Forum
Honored Contributor
15 years agomixed alt_printf vs printf
Dear experts, I am a beginner using uC/OSII with Nios II EDS 10.1 sp1. Question: 1. Is there any thing I should concern if I use alt_printf and printf in mixed? I found that task usin...
Altera_Forum
Honored Contributor
15 years agoI copy and paste from the Nios SW Developer's handbook:
alt_printf()
This function is similar to printf(), but supports only the %c, %s, %x, and %%
substitution strings. alt_printf() takes up substantially less code space than
printf(), regardless whether you select the lightweight device driver API.
alt_printf() occupies less than 1Kbyte with compiler optimization level -O2.
Regards Cris