Intel C/C++ Compiler 8.0 Released 161
Peorth writes "Intel has released version 8.0 of their Intel C/C++ compiler for both Windows
and Linux.
This release has been rumored for a long time to contain 100% GCC source and binary compatibility. It seems great strides have been made in advancement of that goal, as well as of its performance, but it may have a long way to go yet. Has anyone had experiences with it yet, either good or bad?"
Experiences? (Score:1, Funny)
Has anyone had experiences with it yet, either good or bad?
No, but I heard about it on this "nerd news" website that I frequent.
Linux is their benchmark then (Score:1)
Very good way to show the world that linux is more mainstream every day.
I see no other reason to make the compiler binary-compatible with GCC. (Yes, BSD benefits too.)
Re:Linux is their benchmark then (Score:5, Informative)
The really interesting part is that the Intel's compiler supports Itanium. It's very hard to optimize for Itanium because of its very long instruction codes. Those who run CPU-intensive tasks on Itanium may be interested in the Intel's compiler.
Re:Linux is their benchmark then (Score:5, Informative)
The Intel compiler has supported compiling the kernel with it for a few versions now, I believe. It may require a few kernel patches, but I think some of them have been accepted into the kernel tree. Intel has a web page [intel.com] about it.
Re: Supporting various hardware (Score:3, Funny)
Re: Supporting various hardware (Score:2)
IA-32: A system based on a 450 MHz Intel(R) Pentium(R) II processor or greater, Intel Pentium 4 recommended # 128 MB (256MB recommended).
IA-64: A system with an Intel Itanium(R) or Itanium 2 processor or greater
It was a joke (Score:2)
Re:Linux is their benchmark then (Score:4, Informative)
Re:Linux is their benchmark then (Score:4, Informative)
Actually, the gcc 3.0 series was changed to use Intel's C++ ABI, so gcc did the changing, not icc. Of course, icc did add support for some of gcc's extensions.
so, any source distributions able to use this? (Score:3, Interesting)
-
Re:so, any source distributions able to use this? (Score:2, Informative)
Re:so, any source distributions able to use this? (Score:4, Insightful)
That's a strange conclusion. The Gentoo comparision is a comparison of two -march settings on GCC. ICC is a whole different compiler.
Re:so, any source distributions able to use this? (Score:2)
Re:so, any source distributions able to use this? (Score:2)
Re:so, any source distributions able to use this? (Score:1)
okay. (Score:1, Troll)
Because... (Score:4, Informative)
Re:Because... (Score:3, Funny)
Oh, please, Mr. GNU/Troll (Score:2)
do try to keep up (Score:2)
I mentioned neither "GNU" or any "philosophical positions".
Staying out of jail, and knowing what a compiler is doing, are *practical* arguments against using Intels compiler.
expounding the GPL and the GFDL
I denounce the GFDL.
So you don't approve of its being protected by regular copyright law
GPL uses regular copyright law.
sit down and shut up
Challenge, rebut, argue, but don't tell a person not to speak. (and I *am* sitting down.)
Re:do try to keep up (Score:2)
Re:do try to keep up (Score:1)
How is staying out of jail an argument against using Intel's compiler? It's only an argument against using ICC illegally. Same thing goes for distributing GCC under an incompatible license.
As for "knowing what your compiler is doing", you never made this argument in your original post. Even so, I assume you're getting at one of three things:
Re:do try to keep up (Score:2, Flamebait)
If you have a copy of icc, and a friend or family member asks for a copy, what do you do?
You could say "No, I promised Intel that I wouldn't give a copy to you or anyone else". Or you could break the promise to Intel and help your friend. I think the latter is the lesser of two evils, but it's easier to simply avoid this dilema by not making that promise to Intel in the first place.
> As for "knowing what your compiler is doing
$900? (Score:3, Informative)
Re:$900? (Score:1)
It is $378.99 at the following URL
http://www.programmersparadise.com/Product.p
Re:Because... (Score:2)
20%+ penalty for using gcc rather than icc (Score:2)
lol (Score:2)
Re:lol (Score:2)
Re:lol (Score:2, Funny)
kernel (Score:5, Interesting)
Obviously there is other software to compile besides the Linux kernel, but since the icc is so tuned to the Intel hardware, and Linux interacts so directly with the hardware, people believe that icc would give great benefits to the kernel. At the very least, nothing can claim 100% gcc compatibility unless it can compile Linux unmodified.
Re:kernel (Score:1, Informative)
Re:kernel (Score:5, Insightful)
Here's my experience: (Score:2, Funny)
I went to the website and was told that I wasn't allowed to have a copy unless I paid them money and promised to prevent others from copying my copy.
They've also denied my request for a copy of the source code. Appearently, I'm not allowed to know what my copy is doing when it's compiling my code.
There were many other restrictions. Overall, a pretty bad experience
Re:Here's my experience: (Score:3, Informative)
An AC above pointed out that Intel are part of the Trusted Computing group. This all reminds me of Ken Thompsons compiler trojan [acm.org]. (where he hacked a c compiler to add a backdoor whenever it is compiling "login".)
So, what might icc add to the security functions of glibc? to gnupg, sshd, lsh?
In a way, the idea of using a proprietary compiler is very similar to that of proprietary voting software.
Awfully tenuous argument (Score:4, Insightful)
So, what might icc add to the security functions of glibc? to gnupg, sshd, lsh?
You're reaching pretty far with this argument. Intel is a damned large company with a lot of groups working on things and a lot of different opinions and people. They don't have to have a secret, nasty, ulterior motive, even if one group is working on something you don't like.
You want to be paranoid about Intel? Give up -- they control the CPU. They could trojan you much more easily via the proecessor -- no reason to dick around with the compiler.
Plus, look at the Trusted Computing Group membership list [trustedcom...ggroup.org]. Do you distrust all products from all of these companies?
Let's see:
* ARM is on there. You better avoid any embedded devices. They might be trojaned. Or using any devices in your system (drives, add-in cards) that have ARMs onboard.
* ATI and NVidia are on there. Video cards are clearly out -- there are numerous standards that will let video cards push code to the processor, plus cards tend to have pretty much unstopped access to memory.
* Fujitsu is on there. You want a trojan, a hard disk controller is a damned sweet place to put it.
* Philips is on there. I hope you don't rely on CDs for anything. Who knows what they put in their reference CD drive controller code?
* RSA is in there. A damned large number of companies license their prewritten libraries (and binary copies of the thing, as well). I hope you've never run Netscape Navigator 4.x, because if you did, RSA could be controlling your system, modifying binaries, etc.
* Phoenix is on there. Boy, I hope you don't trust your BIOS for anything. You *are* using LinuxBIOS on a *completely* open-spec'd motherboard, right?
Point is, trying to distrust huge companies because one small component of the company does something you dislike is simply a futile task. Maybe one day you can use all open-source and viewable software, but it isn't going to be in the next decade -- keep in mind all that controller hardware with unbounded privileges to all the goodies on your computer.
Don't get me wrong. I like open source. I write open source. However, being irrationally fanatical about it is both stupid and counterproductive, and doesn't do diddly for the open source movement.
Re:Awfully tenuous argument (Score:2)
Re:Awfully tenuous argument (Score:2)
What if you run an AMD?
Re:Awfully tenuous argument (Score:2)
No, the same argument DOESN'T exist. Intel can't very easily insert a trojan into AMD's processor designs, unless AMD collaborates. However, they do have an economic stake in designing a compiler that appears to function properly on AMD, but produces code that doesn't perform properly.
Follow the money.
Re:Here's my experience: (Score:2)
sure, it's not as easy or convenient. and modifying it to do what you like may be an pain. but
besides, have you never seen p
Re:Here's my experience: (Score:3, Informative)
Sadly, there don't seem to be any good free (either speech or beer) general-purpose decompilers. There are several for Java, but Java is easier to decompile because programs carry extra information for verification purposes.
and sheesh, some C people can read assembly code just as easily as if it -were- C. it's practically the same thing.
Depends
Re:Here's my experience: (Score:2)
Re:Here's my experience: (Score:2)
Re:Here's my experience: (Score:2, Informative)
What's the big deal? (Score:3, Informative)
Overall, it's probably not worth using unless you really need a compiler that generates fast code.
Re:What's the big deal? (Score:5, Funny)
Optimize or architect for performance? (Score:2)
Theoretically, an optimizer would transform object code into something that always produces the same set of output for any given set of input, but it would do it faster than the un-optimized code. Since the direct correlation of objects in the object code and descriptions in the source code is broken, debuggers will often fail to work correctly on optimized code. Even if it worked perfectly all the time, there is no guarantee that optimized code will always be faster than unoptimized code. If the source co
Re:Optimize or architect for performance? (Score:2, Insightful)
Let's consider a very basic example:
If you read old C textbooks, they'll actually tell you to write the above code as something like
Why? Beca
Re:Optimize or architect for performance? (Score:2)
I'm not sure that this is necessarily an optimization like I'm referring to. I'm not exactly sure what gcc does for instance, but I would expect sizeof(int) to be calculated and stored for easy reference when the program block or function provifing scope is pushed onto the stack. I would consider recomputing sizeof(int) every iteration to be foolish. Is it even legal to change the type of a variable? What's the point of declaring a variable type before you use it if you need to do sizeof(type) every time y
Re:Optimize or architect for performance? (Score:2)
Re:Optimize or architect for performance? (Score:2)
I can't help but point out that the ridiculous amount of cache on processors these days can obviate concerns over the load-store-load thing, and processors (rather memory controller chipsets) will always optimize that sort of thing. Granted: fetching from cache is not as fast as direct operation on a register, but how many loops are tight enough to execute in less cycles than a fetch from (L1 or L2) cache? Now we're getting into "costing" operations where it pays to do architecture comparisons because of t
Re:What's the big deal? (Score:2)
Of course faster is good but sometimes trading a little speed for smaller code is a valid trade off.
Speed is not everything sometime portability is of high value.
The best if of course small, fast, and portable.
I look forward to playing with icc. I really want to see if it can boost KDE and or the kernel. Okay gcc time to step up to the plate
Why is this not modded up FUNNY? (Score:2)
Is this some sort of cruel joke? Do you like running slow code?
Re:Why is this not modded up FUNNY? (Score:3, Insightful)
Re:Why is this not modded up FUNNY? (Score:2)
The number of programs where a speedup of 5% or 10% makes a big difference is very small. Most programs are IO-bound or memory-bound anyways. For a huge number-crunching application that is going to be running for a week or two, though, a 10% speedup makes a big difference.
Re:Why is this not modded up FUNNY? (Score:2)
Garbage, you've never worked on a commercial enterprise scale product. 10% improvement in performance can make a significant difference to performance targets for an average software product, saving reasonable amount of development time, effort and cost.
Re:Why is this not modded up FUNNY? (Score:2)
True enough, I've mainly done scientific programming. The project I work on is not performance-intensive, while the guy across the hall does heavy number crunching (and still uses gcc).
10% improvement in performance can make a significant difference to performance targets for an average software product, saving reasonable amount of development time, effort and cost.
Sorry, I've been thinking of compiling open-source and in-house soft
processor dispatch (Score:5, Informative)
I do not know what happens when the app is ran on AMD processors that support SSE/SSE2.
Re:processor dispatch (Score:2)
Interesting. I wonder how hard it would be to implement something like that for gcc.
Re:processor dispatch (Score:2)
Does it matter?. I'm sure it's patented.
Re:What's the big deal? (Score:5, Insightful)
At work we use both MSVC 7.0 and ICC 7.0. We'll probably also use MSVC 7.1 for our next product cycle. And maybe Comeau or GCC in the future. At home I use GCC and ICC.
Re:What's the big deal? (Score:2)
We also use GCC on Linux, the Intel compiler (on Windows) and VC++ 6. I try to get all of them to produce no warnings, and this has detected a huge number of bugs that would not have been found if only one compiler had been used.
Re:What's the big deal? (Score:2, Funny)
Yeah, totally. I mean
Re:What's the big deal? (Score:2)
Actually, for a few projects I've done, I'd settle for a fast compiler, since the program is so I/O bound, I could have written it in perl if memory consumption wouldn't go through the roof if I did. Python+psyco looks intriguing, but I'd rather move to lisp
Re:What's the big deal? (Score:1)
Non commercial license is free (Score:4, Interesting)
http://www.intel.com/software/products/compi
I compile using both gcc 3.2 and icc 7.0. I do this because different compilers emit different warnings and this has helped me to improve my software's quality.
The fortran and c/c++ are both available, as long as you don't try to create a commercial product with it.
Re:Non commercial license is free (Score:2, Informative)
Question (Score:2)
Hey, does anybody know how well it optimizes for the Athlon XP?
Re:Question (Score:5, Insightful)
With my problem/code the Intel compiler generated code ran faster on the Athlon XP than gcc 3.3's code using its XP switches and other "go fast" options. Using whole program optimization resulted in a program running considerably faster than the gcc 3.3 generated binary. icc is also stricter in some ways regarding syntax and C++ gets to use the EDG parser (if its still using it, can't see why not).
The various posts here from people going "why bother" show a great deal of naivety. There are good reasons you want to use multiple compilers other than just the fact that icc can generate better code than gcc (in many circumstances, other tests may show the opposite result, YMMV). For starters its going to pick up a different set of errors. Now gcc is pretty good at producing useful warnings, a whole bunch better than Visual C++ for instance, but it isn't perfect, adding icc into your toolkit helps you find problems in your code. A more important reason however is to avoid the mono-culture introduced with everyone using gcc. Years ago we called it "all the worlds a VAX", then it became "all the worlds a Sun", now its "all the world's Linux (with gcc)". A bit of variation (in implementation, not interface) is a good thing.
Try different architectures as well (Score:2)
- Mac OS X
- SGI Irix
- Solaris Sparc
- Linux x86
- Linux PPC
My experience was that you can get pretty much anything through the gcc x86 compiler and also run it successfully. When you move along to another platform you get Bus Error or Segmentation Faults all over the place, at runtime (the PPC is really picky).
Using different platforms simultaneously really helped improve code quality.
I usually code in linux/x86, but I do no
Re:Question (Score:2)
AMD picked it as the best (Score:3, Interesting)
Compiler:
Intel C++ 7.0 build 20021021Z
Microsoft Visual Studio
MicroQuill Smartheap Library 6.0
I had a look. (Score:1)
There was a time that I would put up with binary-only compilers. That was before gcc. Sure, both free and non-free compilers have bugs, but it's so much easier just to fix those compiler bugs yourself in the compiler's own source code, rather than have to craft a binary patch to fix the bug while you wait 6 months for the vendor to think about releasing the next version.
Re:I had a look. (Score:1)
It may be easy to some to patch their version of GCC for a bug they happen to hear about, but it's not a realistic expectation for most users. GCC is pretty "s
Re:I had a look. (Score:2)
You actually liked their Premier support site? I could never find anything useful on it (I was a paid customer)! That and the tastful shade of blue (#0000ff) kindof made my eyes hurt. I also couldn't get on with the password that changed every 30 days with some pretty strict selection rules enforced - all for something that jsut game me patches for a product that was FlexLM licensed anyway. Ho hum. Until v6 came out, that website was my only gri
Re:I had a look. (Score:2)
So is this something you've actually done--fix errors in gcc--or something you're just spouting off about? What were the errors specifi
Yeah (Score:2)
I didn't have the internet at the time, so no, I didn't update the test suite or even tell anyone.
I must admit that some closed source authors (e.g. Frank Wille when he was writing phxass) make a good effort to fix bugs immediately when they are told about them, but nothing's quite so satisfying as being able to say "there,
Real Timings (Score:4, Interesting)
Now, you can take whatever you want outta that, but my view is that having your programs run three times faster just might be useful.
Disclaimer: these results are for a specific program (dealing with computational astrophysics). Obviously your application may see other speedups.
Re:Real Timings (Score:3, Informative)
And ignore the word "superior" in the last entry. That's just an internal note that I forgot to remove... has nothing to do with the timing test.
And for those who were wondering... the various tests comparing RH8 libraries (2.2.93 vs 2.3.2) were done because the 7.0 version of the Intel compiler did not support RedHat 9 (so we were forced to copy libraries over from a RedHa
Re:Real Timings (Score:2)
I assume that with icc, -O0 doesn't really mean no optimization, it just means not to do any optimizations that take extra time. Some optimizations actually decrease compile time, or at least have no effect, because they decrease the amount of work later stages have to do.
GCC currently interprets -O0 as meaning no optimization at all, which makes comparing the speed of gcc -O
How about version numbers? (Score:2)
Re:Real Timings (Score:2)
Did you turn -ffast-math on with GCC? icc does that by default. On some applications it makes a significant difference.
AFAIK gcc does not turn it on even with -O3 because it makes the application non-IEEE compliant as far as the FP math is concerned.
Re:Real Timings (Score:5, Informative)
"Free stuff" and "corporations" are not mutually exclusive. Most of the work done on gcc is by people who are paid to work on it.
And everyone will talk out of their asses about how the Intel compilers couldn't possibly be faster than gcc.
There are still many interesting optimizations that gcc doesn't implement. A lot of work is being done on adding them to the tree-ssa [gnu.org] branch, which hopefully will be merged into mainline gcc for 3.5.
So, I figured I'd throw out some real numbers:
It sounds like you're doing floating-point intensive number crunching code, which quite honestly is where icc should give the greatest benefit over gcc. On integer workloads they should be much closer. Number crunching gets a big boost from vectorization, and icc does automatic vectorization. GCC doesn't (though work is underway), and it won't use vector instructions at all unless you supply -mmmx, -msse, -msse2, and/or an -march option that specifies an appropriate CPU type. You can still get the advantage of vectorization if you're willing to code it explicitly.
Re:Real Timings (Score:4, Interesting)
Re:Real Timings (Score:4, Interesting)
Execute times. Sorry if that wasn't clear. The program was fairly small, so compile times were considered insignificant.
Vectorization is probably the key (Score:3, Interesting)
In one of my programs, icc7 actually produced slower code than gcc (at -march=pentium4, maximum optimization) because the most time-consuming loop was not automatically vectorized for some reason.
Re:Vectorization is probably the key (Score:2)
Re:How fast on non intel machines ? (Score:2)
About the same size as the static binaries that gcc produced. I should mention that the reason I compiled with -static was because I was testing the speed on three different computers with different hardware (and different libraries) so I needed something widely compatible.
If you dont care about code portability and all you want speed write in assembler, not C or C++
Sorry, I didn't try running these on our Athlon boxes since they won't be running the
Great! (Score:1)
Definitely going to try out this one (Score:4, Informative)
Performance-wise, it seems to have a slight edge over gcc, but this is subjective as I haven't really measured anything yet. Apart from the performance issues, I've found icc to be way more informative in its warnings and remarks than gcc. Unless you strictly believe in the GPL or are open-source only, I see no reason not to at least give it a try, it's a damned good piece of software.
Re:Definitely going to try out this one (Score:2)
Asuming that compile time is most important to you, if the code runs faster under icc then you should probably use that instead.
GCC compiled with ICC? (Score:2)
But Have They Fixed The Bugs?! (Score:3, Informative)
The problem? Since version 6 came out any software we compiled with it exhibited crashes that did not occur when we used another compiler on the same code.
In the end we had to stop using it. Its a shame really because it was an excellent product (the only gripe being their Premier/Quad support website which was crap).
Steve.
Re:But Have They Fixed The Bugs?! (Score:3, Insightful)
Re:But Have They Fixed The Bugs?! (Score:2, Insightful)
Re:But Have They Fixed The Bugs?! (Score:2)
I did search for the reason behind the crashes for a while, but after a while it came down to the usual time/money/performance trade off since we did not get any such crashes using MSVC6/
Re:But Have They Fixed The Bugs?! (Score:2)
Patches for compiling linux kernel (Score:3, Informative)
10-20% increases using 7.1 (Score:3, Interesting)
Re:Intel, great.. what about AMD ? (Score:2, Informative)
I think ICC yields slightly better performance on AMD anyway.