Advertisement

idot's question: C++ compiler for linux

Started by September 19, 2003 05:39 AM
8 comments, last by Gameplayer 21 years, 4 months ago
where can i get a c++ compiler/linker (like msvc++[ i am trying to convert from microsoft , slowly but surely]) for linux, i have only just baught mandrake linux 9.1, and i would like to know if there are any good compilers for it, and if so, which 1 is best?
You should listen to me, im 'Special'.Or so my physiatrist said.
Every Linux distribution includes GCC, which stands for GNU Compiler Collection. If you want syntax hilighting almost every decent editor supports it.
Advertisement
cheers
You should listen to me, im 'Special'.Or so my physiatrist said.
You might try KDevelop as IDE.
or you can use the anjuta IDE. You can also get IntelC from this site

our new version has many new and good features. sadly, the good ones are not new and the new ones are not good
Intel has the compiler that can optimize best. Standard compilers like gcc and msvc can not do that icc can. Its also possible to use both gcc and icc on the same project because they are binary compatible.

The tools are available as a free download from intel.
Advertisement
Intel does have a good copiler, and it does great optimization feats for the intel processors. But if you have a non-intel processor (not just Athlon as Linux distros can be found for many different architectures) gcc is one of the best around, and most complete in terms of C++ compatibility.
I havent tested but I am pretty sure that icc produces code that is clearly better than gcc also for AMD processors. I also think that the compiler itself works with AMD CPUs but this is perhaps more uncertain.
Does not AMD support MMX and perhaps also SSE?
With icc can you write C/C++ code and let the compiler vectorize or give an message why it could not do so.

In my opinion does gcc have better error messages than icc so I normaly first compiles with it. From my experience does both gcc and msvc produces fairly equal and excellent code but icc beats them both.
New (3.1.x and up) versions of GCC have one of the best (IA-32) integer optimizers around. Intel''s C compiler biggest advantage is in its great floating point optimization and vectorization (GCC''s IA-32 floating point optimizer still needs some work). Intel''s C compiler does produce well optimized code for Athlons and many other chips too (when used with features AMD processors also support, of course).

quote:
Original post by Anonymous Poster
Does not AMD support MMX and perhaps also SSE?

All modern AMD processors support MMX, but only the newer ("newer" because they have been around a while, but I still don''t own any of them ) also support SSE (but not SSE2). AMD''s SSE equivalent was 3DNow!, but they finally decided to support SSE as well.

Yes, intel seems to focus on floating point and vectorization. For floating point does it also give better warning/error messages than gcc. Anyway, I have the feeling that icc should produce faster code also for integers in most cases.

Something good about intel is that they has some very good tutorials. I searched the net for similar information for gcc but didnt really find anything. Too bad because the compiler has some advanced featues like multipass optimizations with Profile Guided Optimization (PGO). Everybody just seems to use some standard optimization switches.

This topic is closed to new replies.

Advertisement