From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,1e72e7e2b0ab6de2 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2002-02-06 09:56:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!rob From: rob@gtedhcp-55.inetarena.com (Robert M. Riches Jr.) Newsgroups: comp.os.linux.alpha Subject: Re: newbie confusion Date: Wed, 06 Feb 2002 17:56:05 -0000 Organization: none-at-all Message-ID: References: <77b348b9.0202060042.240597a1@posting.google.com> <3C60F36F.48035B66@sql.de> Reply-To: richesr1@inetarena.com User-Agent: slrn/0.9.6.4 (Linux) X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.os.linux.alpha:4830 On Wed, 06 Feb 2002 10:12:15 +0100, Joerg Bruehe 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 . 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