what does the stackframe look like in managed code?

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.
 
G

Gaurav Vaish \(a.k.a. MasterGaurav\)

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!
 
R

Ryanivanka

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?
 
G

Gaurav Vaish \(a.k.a. MasterGaurav\)

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top