[Mono-list] Assembly code execution from C#
Paolo Molaro
lupus at ximian.com
Tue Oct 7 08:09:14 EDT 2008
On 10/06/08 Markus Johnsson wrote:
> I've been experimenting with x86 assembly coding and execution from within
> C#, and was happy to get some code (see below) to work. However, when I
> tried it on Windows and .NET it failed with an AccessViolationException.
> Should I expect it to fail on mono too in a future release? Is there a
> better way to do this (i.e. executing x86 code without using a C
> library)? Using mono the code below compiles and runs fine on both Windows
> (mono 2.0) and Linux (mono svn).
Apart from the bugs Rodrigo found in your asm code, heap memory is not
guaranteed to be executable.
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-list
mailing list