Wednesday, December 20, 2006

Thunking in Win32, at Codeproject.com

I posted the Thunking in win32 article at Codeproject the other day (http://www.codeproject.com/useritems/thunk32.asp), and has gotten valuable response. As a result, I've further adapted the library, with even more changes to come in the future, such as:

  • x64 support.
  • Proper allocation pools, to avoid large memory use when a (very) high number of thunks is used.
  • Possibly support for even more calling conventions.
When I first posted the article, I feel that I got some undeserved low votes. Not that the voting matters that much, but when you're given multiple 1's from someone who don't even bother to read the full article (let alone view the source); that's frustrating. A few seemed to think that I was presenting another boost::function replacement, which I by no means am. The article and library describes a way to convert between calling conventions, in all its simplicity, and is definitely not a functor replacement :)

2 kommentarer:

Rupen said...

Have you tried this mechanism in system (like Linux, Symbian etc.) running on ARM

Tarun Elankath said...

Hi Einar,

This library is wonderful. I also saw the updated version at CodeGuru.

But..How does one make this work for 64bit?

Thanks,
Tarun