public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Code Bloat using GCC 3.2 on Linux
@ 2004-12-15 11:45 Gaurav Jain
  2004-12-15 12:45 ` jlh
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Gaurav Jain @ 2004-12-15 11:45 UTC (permalink / raw)
  To: gcc-help

Hi,

I have an application which is compiled using gcc 3.2 on linux.  The
problem is that the same application compiled on Windows using MS
VC.net is much smaller in size (about 1/2) than that on linux.  The
application uses mainly C++ code, has lots of exception handling and
templates.

I'm currently using the following options to compile my source files:
gcc -x c++ -O2 -fno-omit-frame-pointer -ffloat-store -fno-inline
-Wno-multichar -fexceptions -mcpu=pentium

and the following for linking:
gcc -rdynamic -lm  -ldl -lpthread

I wish to know whether there are any gcc options that can be used to
combat the excessive code bloat using gcc on linux?  Why should the
same code have 1/2 the size on Windows?  What's the way to get the
MINIMUM possible size of an application using gcc 3.2 (even if it is
at the cost of some run-time performance)?

Any help would be highly useful.

TIA,
-Gaurav

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-12-20  6:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-15 11:45 Code Bloat using GCC 3.2 on Linux Gaurav Jain
2004-12-15 12:45 ` jlh
     [not found] ` <20041215132426.78ca7b5e@zeta.comsys.se>
2004-12-15 14:11   ` Gaurav Jain
     [not found]     ` <6.2.0.14.2.20041215081802.0207dbd8@iplan-mn.corp.adobe.com>
2004-12-15 15:28       ` Gaurav Jain
2004-12-15 16:09         ` Andras Tantos
2004-12-16  5:09           ` Gaurav Jain
2004-12-16  5:33             ` Ramana Radhakrishnan
2004-12-16  9:15               ` Gaurav Jain
2004-12-17  3:37                 ` Ramana Radhakrishnan
     [not found]         ` <6.2.0.14.2.20041215094647.020cf100@iplan-mn.corp.adobe.com>
2004-12-16  5:03           ` Gaurav Jain
2004-12-20  6:18 ` Joe Steeve

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).