[cfe-dev] COM ABI support?

James Gregurich bayoubengal at mac.com
Fri Jul 12 16:44:40 PDT 2013


a somewhat related thought that comes to my mind...

I have no idea if the following is feasible...it appears to me at a superficial level that the C++/CX reference counting extensions for WindowsRT development are pretty much the same as ARC in ObjC.  One might be able to implement that functionality with the ARC infrastructure.




On Jul 12, 2013, at 11:50 AM, Csaba Raduly <rcsaba at gmail.com> wrote:

> Hi Stephen,
> 
> On Fri, Jul 12, 2013 at 5:39 PM, Stephen Lin  wrote:
>>> Some don't. IBM's C/Set++ or the VisualAge C++ compiler for OS/2
>>> didn't (the pointers in the vtable were 8 bytes apart, despite it
>>> being a 32-bit compiler). Our (cross-platform: Windoes, OS/2, Mac,
>>> Unix, NetWare, ...) product had a library with a COM wrapper on it.
>>> All platforms implemented COM in C++, except OS/2, where we had to use
>>> plain C to get the correct layout.
>> 
>> Out of curiosity, what were the extra 4 bytes in each vtable entry
>> for? Was this part of some implementation strategy to support
>> pointers-to-member-functions, or something like that?
> 
> I have no idea. It's been over ten years ago, and I didn't investigate
> at the time; it was just an "odd thing".
> 
> Csaba
> -- 
> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
> The Tao of math: The numbers you can count are not the real numbers.
> Life is complex, with real and imaginary parts.
> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
> "People disagree with me. I just ignore them." -- Linus Torvalds
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list