Article View: gnu.gcc.help
Article #52074-mint64 needed for gcc on OSF1/Alpha
From: Christoph Martin
Date: Wed, 17 Feb 1993 21:46
Date: Wed, 17 Feb 1993 21:46
16 lines
1477 bytes
1477 bytes
Many programs are written with the assumption that sizeof(int) is identical to sizeof any pointer. 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? C. Martin -- ============================================================================ Christoph Martin, Zentrum f"ur Datenverarbeitung, Uni-Mainz, Germany Internet: martin@goofy.zdv.uni-mainz.de
Technical Details
Message-ID:
<B2TABT5R@minnie.zdv.uni-mainz.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.th-darmstadt.de!minnie!orville!martinShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,bb590eb0a2781a42,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-02-17 13:46:34 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.th-darmstadt.de!minnie!orville!martin From: martin@orvillezdv.uni-mainz.de (Christoph Martin) Subject: -mint64 needed for gcc on OSF1/Alpha Message-ID: <B2TABT5R@minnie.zdv.uni-mainz.de> Sender: martin@orville (Christoph Martin) Nntp-Posting-Host: orville Reply-To: martin@automatix.kph.Uni-Mainz.DE Organization: Institute for Nuclear Physics, Uni Mainz, FRG Date: Wed, 17 Feb 1993 21:46:34 GMT Lines: 16