I am using Yagarto (use newlib) to compile a hello world with printf() for atmel AT91SAM9261. The output needs about 4k flash and 2k ram. I have also tried hello world without printf(). The required size is about 80% less.
Is there any method to reduce memory needed in newlib? Actually, I just need prinf() and getc().
Same problem, but when using sprintf. Also 2K of ram is really a lot, and when you call printf the actual memory use grows because it uses malloc to allocate other ram…
Actually, my most concern is in RAM size. I know both printf() and iprintf() in newlib will use about 2K RAM coz it is used malloc.
It seems uClibc is a small footprint c lib. Does anyone try uClibc with Yagarto for AT91SAM9261? I would like to try but I am new guy and never build own c lib. Don’t have idea how to start to build own c Lib!
Currently, I am trying to use bertrik’s advice. I have own sprintf(), getchar() and putchar() functions. When compiling, errors coz of conflict with newlib functions. So I changed my functions name.
Is there any method to keep these function names, so can use them instead of newlib functions?