Reputation: 15
I have a C-code which is optimized for ARM and is compiled with the armcc. I would like to reduce the size of the binary as much as possible. From the standard libraries I'm using
printf(); fopen(); fread(); fwrite(); memset();
I found the option "-nostdlib" which is given to the linker. This option reduces the binary size by a lot, but it gives me errors about undefined references for printf e.g. How would be the right way to exclude the standard libs but still use those functions?
Upvotes: 0
Views: 272