Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSoftware size is too big
Hello guys, i've tried small C lib, reduced device drivers and everything else but nothing works.. I am using Quartus V10.0SP1 and NIOSEDS V10.0SP1, A hello word simple program with a printf ta...
Altera_Forum
Honored Contributor
15 years agodsl, how can i use the unix printf then?
I made the following changes and the code size went down from 28k to 13kbytes (A NORMAL PRINTF) template BSP/syslib: - uncheck Support C++ em properties->C/C++ Build do BSP Template - check Lightweight device driver no BSP Editor - check Reduced device drivers no BSP Editor - uncheck enable_clean_exit no BSP Editor - uncheck enable_exit no BSP Editor - configure optimize level to Size on properties->C/C++ Build do BSP Template - configure Debug level to none on properties->C/C++ Build do BSP Template Software: - configure optimize level to Size em properties->C/C++ Build do BSP Template - configure Debug level to none em properties->C/C++ Build do BSP Template IF I CHANGE the code to this#include "sys/alt_stdio.h"
//#include <stdio.h>
int main()
{
//printf("Hello from Nios II!\n");
alt_putstr("Hello from Nios II!\n");
return 0;
}
the size goes to 600bytes