|
 |
On 2/20/2011 10:28 AM, Warp wrote:
>
> It's not like you need to write the entire program in assembly just
> because you need to execute one asm instruction not supported by the
> language. They invented inline asm for a reason.
>
Heh. Or that rare time when you're using an API that requires the
callbacks be naked functions and do ALL of their own handling of the
stack and everything. (Seriously, this is a requirement of the CLR
profiling API) Not only that, but the compiler will not form calls to
either CDECL or STDCall functions from a naked function properly. You
either have to modify the stack frame to work within the context of the
function, or know darn good and well how the function you're calling is
handled. How are arguments passed? who cleans the stack?
Fun stuff. :) Haven't had to break down to pure asm in ages. :D But,
then it's only a couple of functions to call a stub that delegates the
real work. it's not like I had to write pages and pages of assembly.
Post a reply to this message
|
 |