NO

Author Topic: thiscall calling convention  (Read 2769 times)

Moonglow

  • Guest
thiscall calling convention
« on: February 17, 2008, 06:38:56 PM »
Hello all,

from MSDN:
/*
This is the default calling convention used by C++ member functions that do not use variable arguments. Under thiscall, the callee cleans the stack, which is impossible for vararg functions. Arguments are pushed on the stack from right to left, with the this pointer being passed via register ECX on the x86 architecture.
*/

I think if thiscall will be natively supported it will be very usefull... for some wrap's around C++ code....


Thank you.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: thiscall calling convention
« Reply #1 on: February 27, 2008, 06:03:39 PM »
I can't really see how a C++ 'this' pointer fits within a C compiler. Probably not.
/Pelle