|
From: Don H. <do...@al...> - 2003-12-09 00:52:02
|
I've never tried to compile the HelloWorld prog to compare among the different versions. That's the 1st time that I build the same project with different compilers. Since I always think GCC is superior to VC++, I was shocked by the fact. That's why I think this amount (160 KB almost, but not 60 KB event 100KB) is huge. Don HO Je bouffe donc je suis Find a powerful free (and open source) multi-function editor at http://notepad-plus.sourceforge.net/ ----- Original Message ----- From: "Wu Yongwei" <ad...@ne...> To: <min...@li...> Sent: Monday, December 08, 2003 4:29 AM Subject: Re: [Mingw-users] Generated Binary is BIGGER than VC++ 7 generated binary !!! > I just cannot understand why you think 47% code size difference is > "huge". Different compilers will certainly give different results based > on its code generation method, optimization used, and library > implentation. I'll give you a feel using the C++ HelloWorld (using > std::iostream): > > MSVC 6: 65536 > MSVC 6 dynamic linkage: 16384 > MSVC 6 dynamic linkage with "/link /opt:nowin98": 3584 > MSVC 6 w/ STLport 4.5: 212992 > MSVC 6 w/ STLport 4.5 dynamic: 16384 > Borland C++ Compiler 5.5.1: 113152 > DigitalMars Compiler 8.37 w/ STLport 4.5.3: 361500 > GCC 2.95.3-8: 75776 > GCC 2.95.3-8 w/ STLport 4.5.3: 338432 > GCC 2.95.3-8 w/ STLport 4.5.3 dynamic: 29696 > GCC 3.3.1: 217600 > > If you call 147% a "huge" value, how will you call 10095% (361500/3584)? :-) > > Best regards. > > Wu Yongwei > > --- Original Message from Don Ho --- > > Is there a remedy for that? > 160 KB (497 KB vs 340 KB) is really huge! > > > Don HO > Je bouffe donc je suis > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users |