🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52075

Re: -mint64 needed for gcc on OSF1/Alpha

#52075
From: Joe Buck
Date: Wed, 17 Feb 1993 22:55
25 lines
1564 bytes
In article <B2TABT5R@minnie.zdv.uni-mainz.de> martin@automatix.kph.Uni-Mainz.DE writes:
>Many programs are written with the assumption that sizeof(int) is identical 
>to sizeof any pointer.

Fortunately, not as much anymore, since this is not true on PCs except
in the small model and prototypes are used more often now.

> The system-compiler cc on OSF1/Alpha assumes this also
>with a size of 64bit. This is not so for the gcc produced on this plattform.
>Here has a pointer 64, long 64, int 32 and short 16 bits. So the way 
>for porting software is to change at every place where it is needed
>int to long or to have a compiler option (like -mint64 on SPARC) to say
>gcc to use int with 64 bits (or to use cc).

>What is to do?

It may be useful to have a switch to make int be 64 bits, but it is better
still to fix programs that make this assumption (the alternative is to
waste a lot of memory in some cases.

"lint" is your friend.


--
Joe Buck	jbuck@ohm.berkeley.edu
Technical Details
Message-ID: <1lufpj$34e@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!forney.berkeley.edu!jbuck
References: <B2TABT5R@minnie.zdv.uni-mainz.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,bb590eb0a2781a42
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-02-17 14:55:47 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!forney.berkeley.edu!jbuck
From: jbuck@forney.berkeley.edu (Joe Buck)
Newsgroups: gnu.gcc.help
Subject: Re: -mint64 needed for gcc on OSF1/Alpha
Date: 17 Feb 1993 22:55:47 GMT
Organization: U. C. Berkeley
Lines: 25
Message-ID: <1lufpj$34e@agate.berkeley.edu>
References: <B2TABT5R@minnie.zdv.uni-mainz.de>
NNTP-Posting-Host: forney.berkeley.edu