Which free C compiler provides options for more optimization?

Can you give me some comparison between C compilers, especially regarding optimization?

+2


a source to share


4 answers


There are actually not many free compilers available. gcc is a "free compiler" and is probably one of the best when it comes to optimization, even when compared to proprietary compilers.



Some independent benchmarks are linked here: http://gcc.gnu.org/benchmarks/

+7


a source


I believe Intel allows its Linux ICC compilers to be used for free for non-commercial development. ICC beats gcc and Visual Studio when it comes to code generation for x86 and x86-64 (i.e. it usually generates faster code and can do a decent job of automatic vectorization (SIMD) in some cases).



+1


a source


This is a difficult question to answer since you did not tell us which platform you are using, neither hardware nor os ....

But joemoe is right, gcc tends to excel in this field.

(As a side note: there are commercial compilers on some platforms that are better, but since you get so much more than just the gcc compiler, it's hard to beat ...)

0


a source


The Windows SDK is a free download. it includes the current versions of the Visual C ++ compilers. These compilers do a very good optimization job.

0


a source







All Articles