1 |
On 19/03/12 07:26, Andrew Lowe wrote: |
2 |
> Hi all, |
3 |
> Has anyone played around with the various "better known" compilers on |
4 |
> Gentoo? By "better known", I'm referring to gcc, Intel, llvm, pathscale. |
5 |
> My situation is that I've just started my PhD which requires me to do |
6 |
> Finite Element Analysis, FEA, and Computational Fluid Dynamics, CFD, and |
7 |
> I want to find the "best" compiler for the job. Before anyone says "Why |
8 |
> bother, XXX compiler is only 1 - 2% faster than gcc", in the context of |
9 |
> the work I'm doing this 1 - 2% IS important. |
10 |
> |
11 |
> What I'm looking for is any feedback people may have on ability to |
12 |
> compile the Gentoo environment, the ability to change compilers easily, |
13 |
> gcc-config or flags in make.conf, as to whether the compiler/linker can |
14 |
> use the libraries as compiled by gcc on a "standard" gentoo install and |
15 |
> so on. Obviously there is much web trawling to be done to find what |
16 |
> other people are saying as well. |
17 |
|
18 |
You don't need to "change" compilers. You can use whatever one you like |
19 |
to build your program. The compiler portage uses to build its packages |
20 |
does not affect your own usage of the others. |
21 |
|
22 |
As for the fastest one, I can only speak for Intel CPUs where Intel C++ |
23 |
gives me the fastest binaries. |