. , , , , DLL p/Invoke interops,
[DllImport("mylib.dll")]
... , , - # , CLR runtime . , CLR , , . , - , , , .
, , , eax, ebx, frames frames .., CLR-, , , . C/++:
void foo(void){
_asm{
xor ecx, ecx
mov eax, 1
....
}
}
CLR, , , , , CLR, , , ... Managed ++, , VB.NET/C# :
private void mycsfunction(string s){
// Managed code ahoy
StringBuilder sb = new StringBuilder(s);
......
_asm{
push ebp
mov ebp, esp
lea edx, offset sb
....
mov eax, 1
pop ebp
}
}
, , IL- , , , 100%, , . ,
, , CLR - IL , CLR, , , ( NON-CLR), . , .