On 8 April 2011 08:09, Charles Davis cdavis@mymail.mines.edu wrote:
I don't know if this will help but...
Both Clang and (recent) GCC have direct support for __attribute__((thiscall)) (and I would know about Clang, I added it to the LLVM side). We could potentially take advantage of this and not have to declare thunks like this.
That's definitely not portable. It could be used with ifdefs, but then one would have to ask if it is worth the effort. Is there any speed or security or other reason for preferring this method on compilers that support it?