dsl, 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