From: "Jeff Donsbach" <jeff.donsbach@nospam.compaq.com>
Subject: Re: 32-bit Applications on Tru64
Date: 2000/06/15 [thread overview]
Message-ID: <8ibg9u$v2i$1@lead.zk3.dec.com> (raw)
In-Reply-To: 8hr7h1$2gg$1@nnrp2.deja.com
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
<flickering_doom@my-deja.com> 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.
prev parent reply other threads:[~2000-06-15 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-09 4:00 32-bit Applications on Tru64 flickering_doom
2000-06-13 4:00 ` Jeff Sullivan
2000-06-13 4:00 ` Jeff Sullivan
2000-06-15 4:00 ` Jeff Donsbach [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox