This is the mail archive of the gcc-bugs@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]

[Bug c++/15003] New: Generated Code Size if far higher than platform native compiler


Compiled the attached program with "g++ -Os -fno-inline -fomit-frame-pointer".
Resulting code size reported by size.exe from cygwin is
  text    data     bss     dec     hex filename
200180    1992   19088  221260   3604c a.exe

Same program compiled with MS Visual Studio 2003 compiler with "/O2 /EHsc" gives
following -
  text    data     bss     dec     hex filename
 81697    8192       0   89889   15f21 conformance.exe

That's more than 100% less!

-- 
           Summary: Generated Code Size if far higher than platform native
                    compiler
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: warudkar at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15003


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]