Guest
#1171220
Im working with a LPC2131, and gnuARM 3.4.3 on linux. Im a newbie to LPC, but I managed to figure out enough about startup code and linker scripts to get some simple code to build and work. So next I decided to try linking in some standard C lib stuff. First I tried memcpy() and that only added a few K to my binary. Then I tried sprintf(). Binary size went up to about 170k! (linking with -lc -lgcc) So I searched the web and found out about newlib-lpc. I figured maybe this is a size optimized version of the stdlib for LPCs...? I tried it and finally I managed to get it to link. My binary is still about 32k. Too big for a LPC2131. Is this right? Is the lib code just that big? I can certainly write my own sprintf(), but I would like to have math.h and floating point emulation.