[Freemint-list] Beyond Brown

Thorsten Otto admin at tho-otto.de
Wed Mar 1 13:46:30 MSK 2017


On Wednesday 01 March 2017 11:22:09 Adam Klobukowski wrote:
> We all do not like 100kb hello world programs, and with that they would
> shrink considerable.

No, not considerable. Almost all functions are compiled into a separate file, 
so only those that are referenced are actually linked in. The problem is that 
a lot of the stdio functions are directly or indirectly referenced by the 
startup code, and that pulls in a lot of supporting functions. Given that even 
the simplest program will have some reference to printf anyway, trying to 
solve that would not achieve much. If you want a posix compliant library (at 
least as close as it can get on mint) then i bet you have to live with that. 
If you link to the static libc on linux systems, you will have similar sized 
executables.


More information about the Freemint-list mailing list