Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Yao-Lu Tsai <ytsai@oodb.syscom.com.tw>
Subject: 32 bit to 64 bit porting
Date: 1997/04/02	[thread overview]
Message-ID: <33423774.6A2@oodb.syscom.com.tw> (raw)


Hi,

I am trying to port my C codes from SUNOS/Solaris to DEC UNIX 3.2.
I found DEC UNIX is a 64-bit OS. The long and pointer data type
are 64-bit. Unfortunately, there are MANY MANY type casting between
"int" and pointer in my C codes. This will cause problems in a 64-bit
platform. I also found there is a compiling option : -xtaso_short. This
option is much helpful and can solve most of the problems. However, there
are still some unknown problems that will cause core dumped. For example,
what will happen if I use -xtaso_short and call a C library function or
a system call with a pointer in its parameters or returned a pointer ?
Will my program push the 4-byte parameter into the stack but the function/
system call pops 8 bytes out of the stack ? How to solve such problems ?


Thanks a lot.

Yao-Lu Tsai 
ytsai@oodb.syscom.com.tw



             reply	other threads:[~1997-04-02  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-02  5:00 Yao-Lu Tsai [this message]
1997-04-02  5:00 ` 32 bit to 64 bit porting Gerald A. Feldman
1997-04-04  5:00 ` Dirk Grunwald
1997-04-04  5:00 ` Karen Michaels
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