[Mono-devel-list] Mono's support for "unsafe" code

Rafael Teixeira monoman at gmail.com
Thu Mar 31 13:00:51 EST 2005


I think it's currently OK. We had some real trouble some time ago, in
mcs because there wasn't support in the class library to generate code
for "fixed", so we now have specific extension to make that happen.

And yes, while unsafe may mean faster code it also mean beware of what
your pointers point to. Keep them to a minimum and think of all
security restrictions that will apply in MS implementation and in ours
when (CAS) security is activated.

Fun,


On Thu, 31 Mar 2005 18:40:51 +0100, Alex Chudnovsky
<alexc at majestic12.co.uk> wrote:
> 
> I was just wondering what is the degree of support for "unsafe" code in
> Mono?
> 
> I had a few modules with unsafe code compiled in VS 2003 and they seem
> to run okay,
> but I have not found much about whether this apparent support for
> "unsafe" code is 100% complete,
> or mostly working etc?
> 
> My primary interest is using pointers to read/modify data directly in
> heap using "fixed" command
> to make sure GC won't move data. My experience shows that "unsafe" codes
> has some very nice performance
> gains that are very important for my application, should I be wary of
> using that code in Mono?
> 
> regards,
> 
> Alex
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 


-- 
Rafael "Monoman" Teixeira
---------------------------------------
I'm trying to become a "Rosh Gadol" before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!



More information about the Mono-devel-list mailing list