From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b989a62e3e935740 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-11-03 01:25:51 PST Path: bga.com!news.sprintlink.net!hookup!news.mathworks.com!usenet.eel.ufl.edu!usenet.cis.ufl.edu!caen!crl.dec.com!crl.dec.com!nntpd.lkg.dec.com!nntpd.bb.dec.com!herrlich From: herrlich@tpwaxp.tay1.dec.com (Alan Herrlich) Newsgroups: comp.sys.dec Subject: Re: Need help investigating a port to a DEC AXP system running OSF/1 Date: 02 Nov 1994 14:52:37 GMT Organization: Digital Equipment Corporation Message-ID: References: NNTP-Posting-Host: tpwaxp.tay1.dec.com In-reply-to: jim@irvine.com's message of Tue, 1 Nov 1994 19:45:14 GMT In article 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