From: Tim Prince <n8tm@aol.com>
To: gcc-help@gcc.gnu.org
Subject: Re: cross compiling gcc for i686 target
Date: Fri, 01 Mar 2013 20:01:00 -0000 [thread overview]
Message-ID: <51310918.50408@aol.com> (raw)
In-Reply-To: <CAKOQZ8wTYV5U+HKCkYD6B46LvLC=UsBRz0pDSvozs9yu2+oC8A@mail.gmail.com>
On 03/01/2013 01:28 PM, Ian Lance Taylor wrote:
> On Fri, Mar 1, 2013 at 9:39 AM, vijay nag <vijunag@gmail.com> wrote:
>> Is it possible to do a cross compile of gcc-4.7.2 on AMD x86_64 to
>> produce i686 target ?
>>
>> My build, host and target parameters are amd64-pc-linux-gnu,
>> amd64-pc-linux-gnu and i686-pc-linux-gnu. My native compiler again is
>> a 64 bit compiler emitting default 64 bit object code.
> Yes, it is possible.
>
> It is also usually unnecessary. A typical x86_64 compiler
> installation will produce 32-bit x86 code with the -m32 option.
>
> Ian
That switches you over to a 32-bit compiler, taking advantage of the
support of 32-bit execution under this OS. In many current x86_64
installations, the 32-bit compiler is an additional option requiring the
primary gcc development system option.
--
Tim Prince
next prev parent reply other threads:[~2013-03-01 20:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAKhyrx_farUmLu5FVac5_1bepqhAdb_HHy2ngRucs2+V3xfd1g@mail.gmail.com>
2013-03-01 17:39 ` Fwd: " vijay nag
2013-03-01 18:28 ` Ian Lance Taylor
2013-03-01 20:01 ` Tim Prince [this message]
2013-03-02 7:45 ` vijay nag
2013-03-04 15:14 ` vijay nag
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=51310918.50408@aol.com \
--to=n8tm@aol.com \
--cc=gcc-help@gcc.gnu.org \
--cc=tprince@computer.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).