[Mono-list] NET using Java VMs and libs

Miguel de Icaza miguel@ximian.com
27 Mar 2002 20:00:12 -0500


Hello Niels,

> Forget Java! Let me try this again. You do your programming in C#. But 
> runs it on a Java VM! You don't need to know Java to do this. This of 
> cause means that the NET classes is either written/converted to Java, or 
> compiled direct to java byte code, and run on the VM.

There are a number of complications for targeting Java bytecodes for the
C# language, and this is something that you could research:

	* pointer arithmetic.

	* structures (value types).

	* in/out arguments.

	* call-by-address. 

If you are interested in researching possible alternatives for this,
feel free to take the MCS compiler and retarget it to generate code for
a JVM.  I believe this will be hard, but if you have the motivation to
do so, it sounds like a good research topic.

Miguel