| 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 | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 8484 users have contributed to 31619 threads and 100691 posts to date. |
|---|
| In the past 24 hours, we have 34 new thread(s) 123 new posts(s), and 181 new user(s). In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to gemm(A,A,A) like possible? The post with the most views is Dear Steve, excuse me for a d Please welcome our newest member monkeybrains |