Intel compiler

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Intel compiler

Post 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.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Intel compiler

Post 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.
Every good solution is obvious once you've found it.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post 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!
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post 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 :)
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

Why?
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post 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...
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Post by Craze Frog »

User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Post 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.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post 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.
Post Reply