what does the stackframe look like in managed code?

  • Thread starter Thread starter Ryanivanka
  • Start date Start date
R

Ryanivanka

hi,

is the stackframe in managed code the same as in unmanaged?

or they are not related at all.... :)


if I use some asm codes (get the esp register or something about
stackframe) in a unmanaged c++ DLL, when I import it into a c# managed
program, can it work well?

and my c# managed program use many reflections which I can not change.
can reflection work well if I set the whole program to be unmanaged?

thanks.
 
is the stackframe in managed code the same as in unmanaged?
or they are not related at all.... :)


if I use some asm codes (get the esp register or something about
stackframe) in a unmanaged c++ DLL, when I import it into a c# managed
program, can it work well?

Seems like you're trying for a lot of fun! :)

Unmanaged stackframes whould be similar, if not identical, to the managed
stackframes.
But please do not play with a mix of managed-unmanaged code at a very low
level... like __asm's.

Note that there may be some difference, not quite sure.

Note that in managed stackframe, all local variables are pulled on to the
stack at the time of invocation of the function irrespective of where they
are exactly defined. Not sure what happens in the unmanaged code. And this
may be one place of worry!
 
Seems like you're trying for a lot of fun! :)

Unmanaged stackframes whould be similar, if not identical, to the managed
stackframes.
But please do not play with a mix of managed-unmanaged code at a very low
level... like __asm's.

Note that there may be some difference, not quite sure.

Note that in managed stackframe, all local variables are pulled on to the
stack at the time of invocation of the function irrespective of where they
are exactly defined. Not sure what happens in the unmanaged code. And this
may be one place of worry!

thank you,Gaurav

and what about the reflection in unmanaged code?
someone told me reflection was implemented in unmanaged API.so can it
work in unmanaged program? shall I use different funcitons with those
in managed program?
 
and what about the reflection in unmanaged code?
someone told me reflection was implemented in unmanaged API.so can it
work in unmanaged program? shall I use different funcitons with those
in managed program?

What do you want to reflect in unmanaged code?
Reflect upon the managed objects?
 
Back
Top