File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 44An Example Project Show Convert Java Byte Code to LLVM IR assembler , compile standalone executable file
55
66This project is based on [ class2ir] ( https://github.com/MParygin/class2ir ) , that based on an old llvm version.
7- So I've changed some instruction syntex, and repaired bug, enhanced functional .
7+ So I've changed instruction syntax, refactor to stack mode to fix branch problem, and repaired some bugs .
88
99### Currently:
1010Generated CentOS_x64 and MacOS executable file, and say "Hello world".
1111
1212### Make:
13131 . Enter directory java2llvm/
14- 2 . Run mac_build.sh or centos_build.sh , then you will get a.out here.
14+ 2 . Run *** mac_build.sh*** or *** centos_build.sh*** , then you will get a.out here.
1515
1616### Requirements:
17- CentOS 7.0 x86_64
1817 java 1.8
19- llvm-as / llc / clang 5.0
20- make
18+ * Centos:
19+ CentOS 7.0 x86_64
20+ llvm-as / llc / clang 5.0
21+ make
22+ * MacOS
23+ MacOS 10.15
24+ XCode with cli tools 11.0
25+
2126
2227### Known issue:
23- * No GC.
28+ * No GC ,can add if free time .
2429* Maybe some of java instruction can't work, need test
25- * some of java instruction not implementation , see MV.java
26- * Object memory allocation
30+ * some of java instruction behavior simplify , eg. invokevirtual
31+ * Object memory allocation , like NO inheirt parent class field.
2732
2833### change log:
2934* Add base class java.lang.* , java.io.PrintStream
You can’t perform that action at this time.
0 commit comments