From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e7e632930151c4ad X-Google-Attributes: gidfa528,public From: "Jeff Donsbach" Subject: Re: 32-bit Applications on Tru64 Date: 2000/06/15 Message-ID: <8ibg9u$v2i$1@lead.zk3.dec.com>#1/1 X-Deja-AN: 635059930 Content-Transfer-Encoding: 7bit References: <8hr7h1$2gg$1@nnrp2.deja.com> X-Priority: 3 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: iass@lead.zk3.dec.com X-Trace: lead.zk3.dec.com 961102974 31826 16.35.160.77 (15 Jun 2000 21:02:54 GMT) Organization: Compaq Computer Corp X-MSMail-Priority: Normal Mime-Version: 1.0 NNTP-Posting-Date: 15 Jun 2000 21:02:54 GMT Newsgroups: comp.unix.tru64 You can probably "get by" with just using the linker's "-taso" option. This restricts addresses returned by system calls to the lower 31 bits. If you cast a pointer to an int and then back again, things should be ok as it will have just chopped off 0's in the high order bytes. It's not pretty, but it works. In your code, pointers should still be allocated as 8 byte quantities however. A "long" is always 8 bytes, no matter what. There are no options to change their size. In my experience, using the -xtaso and -xtaso_short compiler options and #pragma pointer_size are usually more trouble than it is worth. I steer clear of them. Jeff Sullivan gave some good suggestions on using the latest compiler and it's diagnostics to clean up all your 64 bit issues. You can also use the Porting Assistant as well as "lint" and some of it's options like "-Q". Regards, Jeff Donsbach wrote in message news:8hr7h1$2gg$1@nnrp2.deja.com... > My employer has years and years of development invested in Windows 9x, > Windows NT, and a few *nix platforms. Now he is under pressure to move some > of the apps to Tru64. The problem is that most of the code is not ready for > 64-bit yet (pointers are cast to int and back again). > > I have read the compiler documentation, and know all about the -xtaso and > -xtaso_short flags and the pointer_size pragma. But is there any way to build > and run 32-bit software on Tru64 until we have time to port the code > correctly? > > > > Sent via Deja.com http://www.deja.com/ > Before you buy.