• MorphOS Developer
    bigfoot
    Posts: 508 from 2003/4/11
    Quote:

    First, why is the executable so big for such simple program? Around 165 Kb.


    As Jaca correctly guessed, the executable isn't stripped. Furthermore it's compiled with -g, which adds debugging information to the executable. The debugging information alone is 94kB large.

    Quote:


    $ ls -l GCCprefs.exe GCCprefs.exe.stripped
    -rw-r--r-- 1 bigfoot bigfoot 169816 Nov 21 07:50 GCCprefs.exe
    -rwxr-xr-x 1 bigfoot bigfoot 69480 Nov 21 07:50 GCCprefs.exe.stripped



    Quote:

    What are the most used compiler option to be included?

    Optimisations (-O2/-O3), debugging (-g), Ixemul/Libnix (-noixemul), warnings (-Wall), additonal errors (-Werror-implicit-function-declaration, for example, is quite useful)
    I rarely log in to MorphZone which means that I often miss private messages sent on here. If you wish to contact me, please email me at [username]@asgaard.morphos-team.net, where [username] is my username here on MorphZone.
  • »21.11.15 - 07:56
    Profile Visit Website