From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7a20a3646391c150 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-04-14 01:30:29 PST Path: bga.com!news.sprintlink.net!news.world.net!guardian.up.edu!sequent!uunet!gatekeeper.us.oracle.com!decwrl!pa.dec.com!bier.kar.dec.com!neideck From: neideck@bier.kar.dec.com (Burkhard Neidecker-Lutz) Newsgroups: comp.unix.osf.osf1 Subject: Re: Porting 32-bit programs, using gcc Date: 14 Apr 1994 06:56:39 GMT Organization: CEC Karlsruhe Message-ID: <2oipf7INNl0r@usenet.pa.dec.com> References: <2oh2ke$g1l@pravda.sdsc.edu> NNTP-Posting-Host: BIER In article <2oh2ke$g1l@pravda.sdsc.edu> steube@elroy.sdsc.edu (Ken Steube) writes: >If you can use the native compiler, try the -taso option to cc and ld. >It stands for Truncated Address Support Option, and it makes the code >run using 32 bit addresses. I believe longs are still 8 bytes, but addresses >only use the first 4 bytes. Not quite. It arranges for code and data to be laid out in memory so that the *value* of the addresses fits into 32 bits, i.e. they survive the following: int i; char *p; p = "foo"; i = (int) p; p = (char *) i; There is no way of getting either 32 bit addresses or 32 bit longs. Fix the program (which isn't too hard with the help of lint -q). At least we did it here for the ISODE and multimedia mail system, which has several hundred thousand lines of code. Burkhard Neidecker-Lutz Distributed Multimedia Group, CEC Karlsruhe BERKOM II Project Digital Equipment Corporation neideck@nestvx.enet.dec.com