I'm hoping there is an easy way to freeze a member function's generated assembly (using VC++ 6.0) and then modify it inline without the compiler generating more instructions. When I take the assembly instructions the compiler first generates for a function and place them more or less verbatim inside an _asm block within that function, the compiler keeps adding more instructions before and after the _asm block.
bool classname::operator>(classname& x)
//all the assembly instructions of the old function
The compiler adds extra pushes and pops before and after the _asm block.
Is there a way to tell the compiler not to add any instructions before and after the _asm block here?