From: Phil Blundell <philb@gnu.org>
To: Mark Hatle <mark.hatle@windriver.com>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: RFC: Secondary Toolchain
Date: Thu, 04 Oct 2012 22:16:17 +0100 [thread overview]
Message-ID: <1349385377.8072.9.camel@x121e.pbcl.net> (raw)
In-Reply-To: <506DF8FB.1090606@windriver.com>
On Thu, 2012-10-04 at 16:00 -0500, Mark Hatle wrote:
> This is only one runtime. You have multiple compilers all capable of producing
> software compatible with the same ABI. The default (oe) compiler is used,
> unless otherwise configured. The alternative(s) are used for optimization of
> various items. I mentioned ICC, because it's one that I know today people are
> using and it is capable of replacing gcc in many applications.
If that's the case then it doesn't seem like it ought to be necessary to
override most of the variables you mentioned. Tools like ar, ranlib and
strip are generic to a binary format and should work fine with the
output from any compiler. Also, if you're linking with GNU libc then
the chances are that you need to use one of the GNU linkers (be that
ld.bfd or gold) since I suspect most third party link editors will not
work very well. And, if you have assembly source on hand, it's probably
going to be written in GAS dialect so selecting an alternative assembler
as ${AS} is unlikely to gain much.
So, it kind of seems like the only variables you're likely to need to
change are CC, CXX and the corresponding FLAGS. I guess you might also
want to override F77 in theory though I'm not sure there are many people
using Fortran in an embedded environment.
Your proposed "toolchain-icc" override sounds like a reasonable enough
way to accomplish that, anyway. The only problem it doesn't seem to
solve is the use-case of "everything that supports icc, I want to build
with icc; everything that doesn't support icc, I want to build with
gcc". But I'm not sure this really matters much.
p.
next prev parent reply other threads:[~2012-10-04 21:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-04 18:02 RFC: Secondary Toolchain Mark Hatle
2012-10-04 18:15 ` Trevor Woerner
2012-10-04 18:38 ` Mark Hatle
2012-10-04 19:03 ` McClintock Matthew-B29882
2012-10-04 20:27 ` Mark Hatle
2012-10-04 20:36 ` Khem Raj
2012-10-04 21:00 ` Mark Hatle
2012-10-04 21:02 ` Khem Raj
2012-10-04 21:16 ` Phil Blundell [this message]
2012-10-04 21:31 ` Mark Hatle
2012-11-13 23:37 ` RFC: Secondary Toolchain -- Followup Mark Hatle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1349385377.8072.9.camel@x121e.pbcl.net \
--to=philb@gnu.org \
--cc=mark.hatle@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox