From: michal@gortel.phys.ualberta.ca (Michal Jaegermann)
Subject: Re: Q: Is it possible to compile binaries for a different processor?
Date: 1999/04/16 [thread overview]
Message-ID: <7f68ii$k98$1@pulp.ucs.ualberta.ca> (raw)
In-Reply-To: 37168eea.69605890@news.yec1.on.wave.home.com
Chris Gahan (cgahan@geocities.com) wrote:
: I was wondering if it is indeed possible to compile x86 binaries, for
: example, on an Alpha.
This should be quite easy. gcc had a cross-compilation support for
"always" and I still have around a gcc cross-compiler for producing
Atari ST code. :-) The biggest drag is a set of tools (like 'nm' or 'ar'
and linker) which run on the host computer but operate on binaries of
an intended target and, of course, a set of your target libraries to
link with.
Going the other direction (to cross-compile on x86 for Alpha) seems
to be impossible, or at least very hard, as cross-compiler performs
various arithmetic operations in a target arithmetic and gcc currently
assumes that it can fit them in a host registers. Registers on
Alpha are twice a width of those on Intel.
Now the good question would be why anybody would really want to set such
cross-compiler? Intel boxes are all over the place, quite a few of them
rather fast, and creating the whole cross-compilation environment (not
only a cross-compiler itself) is maybe not hard, with all this support
which is already in place, but rather tedious project.
Michal
next prev parent reply other threads:[~1999-04-16 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-15 4:00 Q: Is it possible to compile binaries for a different processor? Chris Gahan
1999-04-15 4:00 ` Serguei Patchkovskii
1999-04-15 4:00 ` Timo Biesenbach
1999-04-15 4:00 ` Jaap Schellekens
1999-04-16 4:00 ` Craig Graham
1999-04-16 4:00 ` Michal Jaegermann [this message]
1999-05-15 4:00 ` Bounce
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox