From: Ian Lance Taylor <iant@google.com>
To: Michael Zintakis <michael.zintakis@googlemail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: building native cross compiler
Date: Sat, 12 Mar 2011 00:06:00 -0000 [thread overview]
Message-ID: <mcr62rp8aoc.fsf@google.com> (raw)
In-Reply-To: <4D7AB3BB.7060208@googlemail.com> (Michael Zintakis's message of "Fri, 11 Mar 2011 23:43:55 +0000")
Michael Zintakis <michael.zintakis@googlemail.com> writes:
> OK, speculating a bit and expanding this further with two more queries
> -
> if I do not know the target system in advance (i.e. the target for
> GCC2) but this target is specified when the whole build process is
> initiated, would the procedure we discussed on this thread differ?
>
> In other words, if, via a command line parameter or some environment
> variable, the target system is specified when the build up process is
> initiated and is, say, m68, and if I follow the process as discussed
> on this thread, i.e.:- 1) build GCC1 (native-3stage-x86_64), then 2)
> build x86_64-x-m68 (GCC2), then 3) build m68-native (GCC3), 4) use
> GCC2 to compile the rest of the software for native m68 environment
> and 5) prepare the image file for installation. Would that be the
> right path to follow (i.e. same process but for different target
> system)?
Yes.
> And my second (speculative) query - would it be wise to skip the first
> step in this process (building GCC1) and build GCC2 instead and
> continue the path from there? What would be the implications if such
> path is to be followed (if at all possible that is)?
It would be neither wise nor unwise. It would save some time, and there
would be a very small risk that the compiler you used instead of GCC1
had a bug. (That has actually happened to me--a bug in the first
compiler which subtly miscompiled the second compiler and caused
problems in the code it generated--but not for many years.)
Ian
next prev parent reply other threads:[~2011-03-12 0:06 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-11 14:56 Michael Zintakis
2011-03-11 16:00 ` Ian Lance Taylor
2011-03-11 16:56 ` Michael Zintakis
2011-03-11 18:57 ` Ian Lance Taylor
2011-03-11 20:47 ` Michael Zintakis
2011-03-11 21:21 ` Ian Lance Taylor
2011-03-11 23:44 ` Michael Zintakis
2011-03-12 0:06 ` Ian Lance Taylor [this message]
2011-03-13 14:23 ` Michael Zintakis
2011-03-13 18:45 ` Ian Lance Taylor
2011-03-13 22:10 ` Michael Zintakis
2011-03-14 0:34 ` Ian Lance Taylor
2011-03-14 0:51 ` Michael Zintakis
2011-03-14 1:01 ` Ian Lance Taylor
2011-03-14 1:30 ` Michael Zintakis
2011-03-14 1:39 ` Ian Lance Taylor
2011-03-14 1:47 ` Michael Zintakis
2011-03-14 1:55 ` Michael Zintakis
2011-03-14 2:01 ` Ian Lance Taylor
2011-03-14 2:08 ` Michael Zintakis
2011-03-14 3:48 ` Michael Zintakis
2011-03-14 15:26 ` Ian Lance Taylor
2011-03-14 15:49 ` Michael Zintakis
2011-03-14 16:00 ` Michael Zintakis
2011-03-14 16:25 ` Ian Lance Taylor
2011-03-14 16:34 ` Michael Zintakis
2011-03-14 16:02 ` Ian Lance Taylor
2011-03-14 16:31 ` Michael Zintakis
2011-03-14 17:23 ` Kai Ruottu
2011-03-14 18:03 ` Michael Zintakis
2011-03-14 19:07 ` Kai Ruottu
2011-03-14 19:25 ` Michael Zintakis
2011-03-14 20:20 ` Ian Lance Taylor
2011-03-14 20:35 ` Michael Zintakis
2011-03-14 21:12 ` Ian Lance Taylor
2011-03-15 2:25 ` Michael Zintakis
2011-03-15 4:23 ` Ian Lance Taylor
2011-03-15 5:01 ` Mick McCreath
2011-03-16 17:26 ` Michael Zintakis
2011-03-20 15:48 ` Michael Zintakis
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=mcr62rp8aoc.fsf@google.com \
--to=iant@google.com \
--cc=gcc-help@gcc.gnu.org \
--cc=michael.zintakis@googlemail.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).