This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: When C++ obeject is passed to C function


Hi Vallabha,

Your working sample is brittle, in the sense that it is very dependent upon the platform (compiler + OS) implementation details.

My suggestion is a means to allow you to avoid platform dependencies and intimate knowledge thereof.

Your alternative would be to become familiar with the underlying implementation on 64-bit GCC 3.1, and have #if/#endif blocks in your code to handle the differences (or use some other proxy pattern / abstraction layer to avoid code "pollution").

I'm not familiar with the underlying implementation schema used on any 64-bit GCC 3.1.

--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]