From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,395a28f70ff70a4a X-Google-Attributes: gidfee84,public From: Bill Kemp Subject: Re: Mixing 64 bit and 32 bit applications Date: 1996/06/25 Message-ID: <31D04202.41C6@medusa.cs.mci.com>#1/1 X-Deja-AN: 162125217 references: <31C87D22.41C6@medusa.cs.mci.com> <31CEB0FB.59E2@zk3.dec.com> content-type: text/plain; charset=us-ascii organization: MCI Intelligent Services Platform mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha) 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