This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

binary just too big [C++]


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]