Page 1 of 1

Intel compiler

Posted: Fri Dec 07, 2007 9:44 am
by mathematician
Does anybody know anything about the Intel C++ compiler? It is available for free if you are going to use it for non-commercial use. Admittedly only in its Linux version, but if you are not going to be making any OS system calls, that shouldn't matter too much.

Re: Intel compiler

Posted: Fri Dec 07, 2007 9:57 am
by Solar
mathematician wrote:Does anybody know anything about the Intel C++ compiler?
It's called icc.

Seriously, what do you want to know? It had been known to generate up to 20% more efficient code than GCC back when GCC 3.something was current. Dunno if that is still the case, or how much.

Posted: Fri Dec 07, 2007 9:59 am
by JamesM
We have CDs with that compiler on at work, and yet still use GCC. So I have to assume that the current version of GCC is faster!

Posted: Fri Dec 07, 2007 12:31 pm
by Candy
JamesM wrote:We have CDs with that compiler on at work, and yet still use GCC. So I have to assume that the current version of GCC is faster!
No you don't :)

Posted: Fri Dec 07, 2007 12:43 pm
by JamesM
Why?

Posted: Fri Dec 07, 2007 4:08 pm
by Candy
JamesM wrote:Why?
What if there's another reason they're not using ICC? Say, licenses, target compatibility (cpu), warning quality, platform support (OS), moral objections, financial objections...

Posted: Sat Dec 08, 2007 8:59 am
by Craze Frog

Posted: Sat Dec 08, 2007 11:42 pm
by bewing
I'd really love to take some of my asm code, translate it into nice C, and run it through both the Intel compiler and GCC optimized. Somehow, I really doubt the compilers are going to come within a factor of 5 of hand coded compilation. If that is so, then any 20% efficiency advantage of one over the other is meaningless.

Posted: Sun Dec 09, 2007 7:33 am
by Candy
bewing wrote:I'd really love to take some of my asm code, translate it into nice C, and run it through both the Intel compiler and GCC optimized. Somehow, I really doubt the compilers are going to come within a factor of 5 of hand coded compilation. If that is so, then any 20% efficiency advantage of one over the other is meaningless.
The average modern day compiler (GCC 4.x) can outperform handwritten ASM if you're not careful.