From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b989a62e3e935740,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-11-01 12:54:31 PST Newsgroups: comp.sys.dec Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uhog.mit.edu!news.mtholyoke.edu!nntp.et.byu.edu!netline-fddi.jpl.nasa.gov!nntp-server.caltech.edu!news.cerf.net!shrike.irvine.com!jim From: jim@irvine.com (James Zarbock) Subject: Need help investigating a port to a DEC AXP system running OSF/1 Sender: usenet@irvine.com (News Administration) Organization: Irvine Compiler Corp., Irvine, California, USA Date: Tue, 1 Nov 1994 19:45:14 GMT Message-ID: I am investigating porting C code to a DEC AXP 2000-300 that we have in-house. The "uname -a" report is "OSF1 alien.irvine.com V1.3 113.75 alpha". The C code was basically written with the implicit assumption that the types "int", "long" and "*" (pointer) were the same size. Of course, well written code would not have made such an assumption. It appears that in C on an Alpha which is a true 64 bit machine the size of the type "int" is 4 bytes and the size of the type "*" (pointer) is 8 bytes. Period. 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? Does anyone have any pointers to any porting notes for an AXP and OSF/1. Any comments or help whatsoever will be greatly appreciated. -- jzarbock@irvine.com -- James Zarbock