From: rob@gtedhcp-55.inetarena.com (Robert M. Riches Jr.)
Subject: Re: newbie confusion
Date: Wed, 06 Feb 2002 17:56:05 -0000 [thread overview]
Message-ID: <slrna62rhk.7kt.rob@gtedhcp-55.inetarena.com> (raw)
In-Reply-To: 3C60F36F.48035B66@sql.de
On Wed, 06 Feb 2002 10:12:15 +0100, Joerg Bruehe <joerg@sql.de> wrote:
>...
>To overcome this porting problem, the Compaq C compiler and linker
>have an option "-taso" (= "address short option"), resulting in
>all addresses being less than 2 (or 4?) GB so they fit into an "int".
>The compiler is available for Alpha-Linux as well, but I do not
>know whether the options works in that version as well;
>AFAIK there is no such option in the GNU "gcc".
On my RH7.1 Alpha Linux system, I don't see the -taso switch in
either the man pages or the output of "gcc -help" or "ld
--help". However, I _have_ used this switch on RH6.1 or RH7.0.
I think it was on RH6.1 that I had to add the following to
CFLAGS:
-taso -Wl,-taso
The plain "-taso" _should_ be all that is needed on modern
systems. IIRC, the "-Wl,-taso" was required for RH6.1 but not
for RH7.0, because the RH6.1 edition of gcc did not pass the
-taso flag to ld automagically.
Other things useful in porting 32-bit apps to Alpha linux include
the following:
#include <linux/personality.h>.
At the start of main(), add a call,
personality(PER_LINUX_32BIT);
With these three items, and a few hacks to the poorly-designed
32-bit-only code, I was able to get Squeak (a free implementation
of Smalltalk from a bunch of former and/or current Apple fans)
working on RH6.1 Alpha Linux. If ever there was a 32-bit-only
application, Squeak is one.
Robert Riches
richesr1@inetarena.com
next prev parent reply other threads:[~2002-02-06 17:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-06 8:42 newbie confusion TiHKAL
2002-02-06 9:12 ` Joerg Bruehe
2002-02-06 17:56 ` Robert M. Riches Jr. [this message]
2002-02-06 15:17 ` Juhana Paavola
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