cancel
Showing results for 
Search instead for 
Did you mean: 

Complier for Redhat Linux

Trojan36
Frequent Advisor

Complier for Redhat Linux

For Redhat Linux, is there a separate C/C++ compiler we need to use for AMD and Intel processors, or does the same compiler support both processors. Thx in advance
5 REPLIES
Steven Schweda
Honored Contributor

Re: Complier for Redhat Linux

First, Intel makes more than one processor
family, but I'll assume that we're talking
about x86-compatible stuff here.

I know nothing, but among x86-family
processors, I'd guess that GCC-for-x86 is
pretty much GCC-for-x86. There may be some
CPU-architecture-specific options to provide
better code on particular variants, but I'd
expect one compiler to be used on both.
P Muralidhar Kini
Honored Contributor

Re: Complier for Redhat Linux

Hi Trojan36,

I think the same compiler should support both the AMD as well as INTEL
processors. In any case, you should check the documentation of the
compiler to confirm it.

some useful links -

* Where to get c compiler for Red hat linux
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=989302

* 12. Compiler and Tools
http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6-Beta/html/Beta_Release_Notes/compiler.html

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
Huc_1
Honored Contributor

Re: Complier for Redhat Linux

Yes gcc support both Processors

a Man gcc will tell you more

But best place is the 2 following links.

http://gcc.gnu.org/onlinedocs/gcc/index.html#Top

http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options.

Enjoy, life.

Jean-Pierre
Smile I will feel the difference
Ralph Grothe
Honored Contributor

Re: Complier for Redhat Linux

Hi Trojan36,

I remember to once have read in some Linux magazine that Intel for example offers its own C/C++ compiler for Linux,
and that for "evaluation purposes" you can get it for free.
I would assume that the Intel compiler does better code optimization for its own architecture than e.g. GNU C/C++.
However, if you're not requiring some number crunching or similar code to be compiled I don't think that the gain is that big anyway.

Just googled this URL:
http://software.intel.com/en-us/articles/non-commercial-software-development/
Madness, thy name is system administration
dirk dierickx
Honored Contributor

Re: Complier for Redhat Linux

gcc is a compiler for a lot of architectures. the main reason for gcc is mostly cross platform support. that is why specialized compilers like the one from intel always produces more optimized code for the intel processors. ofcourse, the intel compiler won't work on anything else, where as gcc works on anything you can throw at it, even platforms that are no longer 'alive'.