[gmpi] Re: MacOS vtable reserved field

  • From: jeffmcc@xxxxxxxxxx
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Wed, 23 Feb 2005 11:17:17 +1300

Cheers Matt,

The best I can figure: OSX Plugins (CFPlugin) are based on
COM (the core of COM anyhow).  The official compiler for OSX
is gcc 3, which uses the Microsoft vtable layout.

I could not find an OSX COM example in C.  So could no prove
it, but it looks like we don't need any special code to
handle COM on Mac.  i.e. we don't need the Mac vtable prefix
any more.

COM Development on Mac
http://www.macdevcenter.com/pub/a/mac/2004/04/16/com_osx.html?page=1

Seems many compilers are converging on the same COM
compatible C++ ABI.

Best Regards,
Jeff

>
> At 9:43 PM +1300 2/22/05, Jeff McClintock wrote:
> >  > Can any of you Mac users point me to a document about
> the "required" >>  reserved field in a Mac COM vtable?  Is
> it for real? >
> >"Every vbtable entry is four bytes long. The first entry
> is always  >zero, representing the offset of the derived
> class in itself" >
> >http://developer.apple.com/tools/mpw-tools/compilers/docs
> /abi_spec.pdf
>
> That was pre Mac OS X. There is new ABI for Mac OS X. (Yes
> , take a  perfectly good ABI and toss it for one designed
> to run on intel  hardware.
> Sorry, the new ABI is a sore spot for us old mac hackers.
> :-))
>
>
> <http://developer.apple.com/documentation/DeveloperTools/C
> onceptual/MachORuntime/MachORuntime.pdf>
>
> Matt
>
> ----------------------------------------------------------
> ------------ Generalized Music Plugin Interface (GMPI)
> public discussion list Participation in this list is
> contingent upon your abiding by the following rules:
> Please stay on topic.  You are responsible for your own
> words.  Please respect your fellow subscribers.  Please do
> not redistribute anyone else's words without their
> permission.
>
> Archive: //www.freelists.org/archives/gmpi
> Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe"
> to unsubscribe
>

----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: