|
From: Arno P. <ar...@pu...> - 2012-05-07 00:42:50
|
from where to where are you trying to convert? It looks like you are
trying to convert a .NET program. Please note that XMLVM's sole focus is
iOS these days. Other targets haven't been worked on in a long time and
will most likely not work.
Arno
On 5/4/12 6:42 AM, Antoine Polatouche wrote:
> 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>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> xmlvm-users mailing list
> xml...@li...
> https://lists.sourceforge.net/lists/listinfo/xmlvm-users
|