Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Bill Kemp <bkemp@medusa.cs.mci.com>
Subject: Re: Mixing 64 bit and 32 bit applications
Date: 1996/06/25	[thread overview]
Message-ID: <31D04202.41C6@medusa.cs.mci.com> (raw)
In-Reply-To: 31CEB0FB.59E2@zk3.dec.com


Craig Neth wrote:
> 
> How are you 'protecting' the header files of the 64 bit api's?   The system
> header files describe the system interfaces, but those interfaces are all 64 bits.
> When you use -xtaso_short to compile your application you change the size of a
> pointer but the library doesn't change what it expects.    What needs to be done
> is to 'protect' the system interfaces from this change in pointer size by use of
> some pragmas.
> 

That is really where the rub is.  We are creating persistent C++ objects that must
be CORBA aware.  What the CORBA product forces you to do is inherit from their base
classes and link against their .so.  The subclass objects are persistently 'newed'
to create them in the data base.  This is done with the OODB and it's .so.  An extra
complication is that some of the members are types from the C++ Class Library.

If we try to 'protect' the CORBA base class includes with #pragma pointer_size here
and there, the objects are of a different size than the database schema thinks they
should be.  Its like we have to have 64 bit base classes with 32 bit subclasses
being stored in a 32 bit OODB.  The 64 bit portion of the base class is confusing 
to the OODB and if we make everything 32 bits so the OODB understands it, the CORBA
library is confused because it is 64 bits.

We have to inherit from base classes that are intrinsic to a 64 bit CORBA implementation
and persistently store the resultant classes in a 32 OODB.  The argument from the 
OODB vendor is that they support 32/64 bit heterogeneous environments and need to do
pointer swizzling on potentially multiple operating systems at once.  32 bits is the 
least common denominator.

-- 
The views/opinions expressed are my own and do not 
necessarily reflect the views of MCI Telecomminications, Inc.

Bill Kemp
MCI Telecommunication Fast Product Development
Colorado Springs, CO
(719)535-4171



      reply	other threads:[~1996-06-25  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-19  4:00 Mixing 64 bit and 32 bit applications Bill Kemp
1996-06-24  4:00 ` Craig Neth
1996-06-25  4:00   ` Bill Kemp [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