* Porting 32 bit apps to alpha
@ 1993-09-20 2:18 Mr Andrew Sammut
1993-09-20 6:44 ` Burkhard Neidecker-Lutz
0 siblings, 1 reply; 3+ messages in thread
From: Mr Andrew Sammut @ 1993-09-20 2:18 UTC (permalink / raw)
Does anyone know how to get the cc compiler to treat int and unsigned as
64 bit, to simplify porting of 32 bit applications, which assume pointers
are the same size as int?
Does anyone have any useful tips for porting 32 bit applications?
And finally, does anyone know how to switch the Alpha into 32 bit mode?
thanks
andrew
--
* __ _ _ _ _ _ __ _ Andrew J Sammut
* /| \| || \ | \ | || \ / \ || / \ Computer Systems Officer
* || __ ||-] |\ \| ||-] \=\ || \=\ Queensland University of
* \|_|| ||_/ | \_| ||_/ \_/ || \_/ Technology
* e-mail: sammut@fit.qut.edu.au phone: +61 7 864 1249
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Porting 32 bit apps to alpha
1993-09-20 2:18 Porting 32 bit apps to alpha Mr Andrew Sammut
@ 1993-09-20 6:44 ` Burkhard Neidecker-Lutz
1993-09-20 13:11 ` David Brooks
0 siblings, 1 reply; 3+ messages in thread
From: Burkhard Neidecker-Lutz @ 1993-09-20 6:44 UTC (permalink / raw)
>
>Does anyone know how to get the cc compiler to treat int and unsigned as
>64 bit, to simplify porting of 32 bit applications, which assume pointers
>are the same size as int?
No way as it would break communication with almost all header files
(the size of structures would change). There is the reverse option
in the 1.3 compilers, called "-taso" (truncated address space option).
While this keeps int at 32 and pointers at 64, it makes sure that
the *value* of all pointers fits into 32 bits (hence if you assign
a 64 pointer to a int, thus truncating it and later retrieve it
again it becomes a valid address again by widening).
>Does anyone have any useful tips for porting 32 bit applications?
If you really want to port, make it 64 bit clean. Use lint -Q to
find most of the places where thing go haywire.
>And finally, does anyone know how to switch the Alpha into 32 bit mode?
There is no 32 bit mode. The 32 bit usage of Alpha under VMS and NT is
only due to the way the compilers generate code for it. Having 32 bit
mode under OSF/1 would require all 32 bit libraries and headers to go
with it plus an adaption layer in between to get from 32 bit system
call interfaces to 64 bit interfaces. It should be noted that the latter
already exists in the MXR subsystem for supporting translated MIPS/Ultrix
applications.
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
Software Motion Pictures & BERKOM II Project
Digital Equipment Corporation
neideck@nestvx.enet.dec.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Porting 32 bit apps to alpha
1993-09-20 6:44 ` Burkhard Neidecker-Lutz
@ 1993-09-20 13:11 ` David Brooks
0 siblings, 0 replies; 3+ messages in thread
From: David Brooks @ 1993-09-20 13:11 UTC (permalink / raw)
neideck@bier.enet.dec.com (Burkhard Neidecker-Lutz) writes:
| If you really want to port, make it 64 bit clean. Use lint -Q to
| find most of the places where thing go haywire.
We have run into a number of fascinating :-| problems getting Motif to
work on Alpha, all of them coming down to subtly bad, but common,
programming practice (how many bits in a Window? -- no peeking now).
This is code that was made to work on a Cray XMP, by the way.
We developed a quick list of do's and dont's, and things to watch out
for, based on our limited experience, but I understand there is a,
presumably better, document from Digital.
Would it be possible to post it or a pointer to it?
--
David Brooks, Open Software Foundation dbrooks@osf.org
Don't mess with Medfield.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1993-09-20 13:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-09-20 2:18 Porting 32 bit apps to alpha Mr Andrew Sammut
1993-09-20 6:44 ` Burkhard Neidecker-Lutz
1993-09-20 13:11 ` David Brooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox