From: Antoine P. <an...@ja...> - 2012-05-04 13:59:05
|
Hi there, What am I doing wrong ? Thanks in advance ! I'm not able to convert a simple Hello world console application using xmlvm. The OS is ubuntu 11.4, the exe is the default C# console project from Monodevelop using java as java version "1.6.0_22" OpenJDK Runtime Environment (IcedTea6 1.10.6) (6b22-1.10.6-0ubuntu1) OpenJDK Server VM (build 20.0-b11, mixed mode) The xmlvm binary was generated from the svn sources (rev 2204) using ant and installed with sudo nant install. The output with the default --target parameter seems correct (I'm not sure: see below) Using other values for --target is giving exceptions or bad results (with things as java: System.err.println("clr:code"); js: ERROR("clr:code"); in the generated code) Generated file: HelloConsole_MainClass.xmlvm $ xmlvm --in=inputdir --out=outputdir --target=xmlvm --debug=all > out.txt -------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <vm:xmlvm xmlns:vm="http://xmlvm.org" xmlns:clr="http://xmlvm.org/clr"> <!--Generated: Fri May 04 15:11:17 CEST 2012--> <vm:class name="MainClass" package="HelloConsole" extends="System.Object"> <vm:method name="<init>" isPublic="true" stack="8" locals="1"> <vm:signature> <vm:return type="void" /> </vm:signature> <clr:code> <clr:ldarg index="0" /> <clr:call has-this="true" class-type="System.Object" method="<init>"> <vm:signature> <vm:return type="void" /> </vm:signature> </clr:call> <clr:return /> </clr:code> </vm:method> <vm:method name="Main" isStatic="true" isPublic="true" stack="8" locals="1"> <vm:signature> <vm:return type="void" /> <vm:parameter type="System.String[]" /> </vm:signature> <clr:code> <clr:ldc type="System.String" value="Hello World!" /> <clr:call has-this="false" class-type="System.Console" method="WriteLine"> <vm:signature> <vm:return type="void" /> <vm:parameter type="System.String" /> </vm:signature> </clr:call> <clr:return /> </clr:code> </vm:method> </vm:class> </vm:xmlvm> |