Displaying 1 result from an estimated 1 matches for "basicio".
2009 Nov 24
2
[LLVMdev] JVM Backend
...lso
required to assemble the output code.
In order to transform LLVM IR to a class file and run it, the
following process is required:
llc -march=jvm foo.bc -o foo.j
# link references to external functions/variables with
# a basic I/O class and the Java math library
java -jar path/to/lljvm.jar ld BasicIO java.lang.Math < foo.j > foo.linked.j
mv -f foo.linked.j foo.j
# assemble
java -jar path/to/jasmin.jar foo.j
# run
java -classpath path/to/lljvm.jar:. foo
At the moment only very basic I/O is available (attached
BasicIO.{java,class}) due to the lack of the C Standard Library.
Before I go rei...