From: herrlich@tpwaxp.tay1.dec.com (Alan Herrlich)
Subject: Re: Need help investigating a port to a DEC AXP system running OSF/1
Date: 02 Nov 1994 14:52:37 GMT [thread overview]
Message-ID: <HERRLICH.94Nov2095237@tpwaxp.tay1.dec.com> (raw)
In-Reply-To: jim@irvine.com's message of Tue, 1 Nov 1994 19:45:14 GMT
In article <CyLtJE.734@irvine.com> jim@irvine.com (James Zarbock) writes:
> Is there some sort of "32 bit compatibility mode" for the C compiler
> that will make the C compiler make longs and pointers 4 bytes?
There is the -taso switch which causes the C compiler to tell the
linker to make all addresses only use 32 bits (31 bits actually). The
sizeof an int is still 4 and the sizeof a pointer and a long are still
8, but this should let most uses of int = * = long work.
In fact, programs may run quite reliably without -taso. I know one
case where a program didn't fail until the linking in of a particular
sharable object library caused malloc to start returning >32 bit
addresses.
In the long run, of course, liberal use of -std1 (ANSI C) and lint to
catch these and other assumptions is the way to go.
--
Alan Herrlich herrlich@microw.enet.dec.com
Opinions herein are my own and do not necessarily reflect those of Digital.
For a summary of Digital's Internet services, send mail to info@digital.com
prev parent reply other threads:[~1994-11-02 14:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-11-01 19:45 Need help investigating a port to a DEC AXP system running OSF/1 James Zarbock
1994-11-02 0:33 ` Dan Pop
1994-11-02 13:18 ` Dave Golden
1994-11-02 14:52 ` Alan Herrlich [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