Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: neideck@bier.kar.dec.com (Burkhard Neidecker-Lutz)
Subject: Re: Porting 32-bit programs, using gcc
Date: 14 Apr 1994 06:56:39 GMT	[thread overview]
Message-ID: <2oipf7INNl0r@usenet.pa.dec.com> (raw)
In-Reply-To: 2oh2ke$g1l@pravda.sdsc.edu

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


      reply	other threads:[~1994-04-14  6:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-04-06 14:42 Porting 32-bit programs, using gcc Mike M. Tuyo
1994-04-10 17:43 ` Dave Cherkus
1994-04-13 15:20   ` Ken Steube
1994-04-14  6:56     ` Burkhard Neidecker-Lutz [this message]
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