binary just too big [C++]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

[ I use gcc 3.4 - Linux 2.6.11 - Mac OS X 10.3 ]

I am not a experienced GCC user so I wonder if I am wrong somewhere...
I used to compile my application with Visual C++/Win32. The binary generated was 3 Mo (release) and 12 Mo (debug). The link was not so quick but it was ok...
Now, the same application is cross-platform (thanks Trolltech).
The release binary is 8 Mo (Linux) and 11 Mo (Mac OS X). Still ok...


But when I try to debug ( -g option ) the Linux binary is 187Mo and Mac OS X binary is 850 Mo !
This is really hard to work with that (linux : 10 minutes to link, three times more for Mac OS X for any coma changed!)


I don't understand this size. I don't have too many inline/template.

Any clue ?

Another question (which is not directly related to this list) :
Does "GNU ld" support incremental now ? I added "-Wl,-i" to my gcc options (which would pass "-i" to ld) but it seems this has no effect...


Thank you all.

Sébastien L. / Pointarre dev.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux