From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7a20a3646391c150 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-04-13 08:20:45 PST Path: gmd.de!nntp.gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!mvb.saic.com!news.cerf.net!pravda.sdsc.edu!elroy.sdsc.edu!steube From: steube@elroy.sdsc.edu (Ken Steube) Newsgroups: comp.unix.osf.osf1 Subject: Re: Porting 32-bit programs, using gcc Date: 13 Apr 1994 15:20:45 GMT Organization: San Diego Supercomputer Center @ UCSD Message-ID: <2oh2ke$g1l@pravda.sdsc.edu> References: <2nuhns$qb2@senator-bedfellow.MIT.EDU> NNTP-Posting-Host: elroy.sdsc.edu >In article <2nuhns$qb2@senator-bedfellow.MIT.EDU>, tuyo@mumford (Mike M. Tuyo) writes: >|> I'm trying to port a *huge* program written for a 32-bit machine >|> to the alpha, and my resident compiler is gcc (2.5.7). It seems >|> to have quite a bit of problems with the longs being 8-bytes wide. >|> >|> Can someone tell my what options to give gcc so it makes longs 4-bytes >|> wide instead of 8? >|> >|> Thank you >|> -mike tuyo. If you can use the native compiler, try the -taso option to cc and ld. It stands for Truncated Address Support Option, and it makes the code run using 32 bit addresses. I believe longs are still 8 bytes, but addresses only use the first 4 bytes. You have to have chosen to install it on your system since it's not installed automatically. I haven't tried it on my system since we didn't install it, but I hear it works OK. Ken