From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S9Z5R-0006DN-HG for garchives@archives.gentoo.org; Mon, 19 Mar 2012 09:41:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6008FE0C9F; Mon, 19 Mar 2012 09:40:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B533CE0B62 for ; Mon, 19 Mar 2012 09:39:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 1A1551B4024 for ; Mon, 19 Mar 2012 09:39:37 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.543 X-Spam-Level: X-Spam-Status: No, score=-1.543 tagged_above=-999 required=5.5 tests=[AWL=-0.533, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BpTKzUYn3Chn for ; Mon, 19 Mar 2012 09:39:28 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8562C1B402A for ; Mon, 19 Mar 2012 09:39:27 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S9Z3h-0008FX-Qz for gentoo-user@gentoo.org; Mon, 19 Mar 2012 10:39:21 +0100 Received: from athedsl-352673.home.otenet.gr ([85.72.233.63]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Mar 2012 10:39:21 +0100 Received: from realnc by athedsl-352673.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Mar 2012 10:39:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: Changing compilers Date: Mon, 19 Mar 2012 11:39:03 +0200 Organization: Lucas Barks Message-ID: References: <20120319132643.Horde.NzbZHrtUV7tPZsOT40nUZ2A@webmail.wht.com.au> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-352673.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120316 Thunderbird/11.0 In-Reply-To: <20120319132643.Horde.NzbZHrtUV7tPZsOT40nUZ2A@webmail.wht.com.au> X-Archives-Salt: cbedaa01-5d46-4ca2-a2e4-3c1124f4c3a1 X-Archives-Hash: 1ab1ffa7a8ae674ccb3e5cb9c9f17f15 On 19/03/12 07:26, Andrew Lowe wrote: > Hi all, > Has anyone played around with the various "better known" compilers on > Gentoo? By "better known", I'm referring to gcc, Intel, llvm, pathscale. > My situation is that I've just started my PhD which requires me to do > Finite Element Analysis, FEA, and Computational Fluid Dynamics, CFD, and > I want to find the "best" compiler for the job. Before anyone says "Why > bother, XXX compiler is only 1 - 2% faster than gcc", in the context of > the work I'm doing this 1 - 2% IS important. > > What I'm looking for is any feedback people may have on ability to > compile the Gentoo environment, the ability to change compilers easily, > gcc-config or flags in make.conf, as to whether the compiler/linker can > use the libraries as compiled by gcc on a "standard" gentoo install and > so on. Obviously there is much web trawling to be done to find what > other people are saying as well. You don't need to "change" compilers. You can use whatever one you like to build your program. The compiler portage uses to build its packages does not affect your own usage of the others. As for the fastest one, I can only speak for Intel CPUs where Intel C++ gives me the fastest binaries.