Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Gerald A. Feldman" <gaf@highway1.com>
Subject: Re: 32 bit to 64 bit porting
Date: 1997/04/02	[thread overview]
Message-ID: <334263DD.2A8A@highway1.com> (raw)
In-Reply-To: 33423774.6A2@oodb.syscom.com.tw


Yao-Lu Tsai wrote:

> 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. 
I won't comment on the coding practice. However, the Digital Unix
calling standard states that the first 6 parameters passed to a function
are passed by register. Likewise, functions return parameters as
registers. (Passing structs and returning structs is a bit different). 
There is a 32 bit library that contains libc functions that are 32-64
bit sensitive. 
Also, there are some tools that Digital provides that can assist you in
porting. There is the Porting Assistant, which is part of FUSE, and
lint. The lint -Q option was specifically implemented to find 32-64bit
problems. 

-- 
+----------------------------------------------+
|  Jerry Feldman <gaf@highway1.com>            |
|  Boston Computer Solutions and Consulting    |
|  http://gaf.ne.highway1.com/                 |
+----------------------------------------------+



  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 32 bit to 64 bit porting Yao-Lu Tsai
1997-04-02  5:00 ` Gerald A. Feldman [this message]
1997-04-04  5:00 ` Karen Michaels
1997-04-04  5:00 ` Dirk Grunwald
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