| Thread Tools | Search this thread |
|---|
dpeterc
| September 5, 2008 3:21 PM PDT huge c++ binaries compared to gcc | ||||
I work on some C and C++ based projects, and use gcc and icc in alternation for quality reasons. I use rougly the same level of optimization with gcc and icc. On C based programs, the binary size generated by icc and gcc is quite comparable, +- 10 %, makes sense. On the C++ based program, icc does much worse. Program consists of some 55.000 lines of C++ code, according to sloccount, and is Qt based. Some rough figures of binary size: -O3 -s GCC: 1.75 MB ICC: 2.8 MB -O2 -s GCC: 1.65 MB ICC: 2.7 MB -O1 -s GCC: 1.6 MB ICC: 1.9 MB With icc, I do not use any special optimization like -ipo -parallel -xT, if I do, it gets even worse. While speed is important, the speed gain of icc are in the range of 10-15% and do not justify such increase in binary size. The main thing that puzzles me, is why icc's C++ binary size is so much worse than C binary, in comparison to gcc. Any ideas or suggestions? I use the following: OpenSUSE 10.3 icc (ICC) 10.1 20080602 gcc (GCC) 4.2.1 | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 8293 users have contributed to 31244 threads and 99122 posts to date. |
|---|
| In the past 24 hours, we have 12 new thread(s) 15 new posts(s), and 25 new user(s). In the past 3 days, the most popular thread for everyone has been huge pages on linux? The most posts were made to Pipeline buffer between stages? The post with the most views is Another example attached (Tr Please welcome our newest member bwillems |