[Mono-list] ( ping lupus) IL code doubts

Shankari shankari82 at yahoo.com
Tue Nov 1 19:42:12 EST 2005


Hi,

I am trying to get the base of unmanaged stack, the reason I want this is because i am sandboxing my C code so that it doesnt write to managed heap and stack.
I got the value of the esp at the beginning of the C program (via assembly instructions) but (as jonp said) at this point the  local variables are already on the unmanaged stack.
 
Is there any way to get to the beginning of the unmanaged stack?

( I tried inserting extra marker arguments in (emit_wrapper) so that I can get to it in C code, but I totally broke mono compilation !!  )

Also, to insert an ARGUMENT of type  say at runtime,   valuetype PlatformInvokeTest/DataObj*   V_4. (Need to generate Il code to declare a pointer to the user defined structure)
should i use:    
 um_ptr = mono_mb_add_local (mb, &mono_defaults.int_class->byval_arg);
or      um_ptr = mono_mb_add_local (mb, &(pclass->byval_arg));
 
 
Thank you very much,
shankari

		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20051101/8cf2607a/attachment.html


More information about the Mono-list mailing list