File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 4
4
An Example Project Show Convert Java Byte Code to LLVM IR assembler , compile standalone executable file
5
5
6
6
This 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 .
8
8
9
9
### Currently:
10
10
Generated CentOS_x64 and MacOS executable file, and say "Hello world".
11
11
12
12
### Make:
13
13
1 . 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.
15
15
16
16
### Requirements:
17
- CentOS 7.0 x86_64
18
17
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
+
21
26
22
27
### Known issue:
23
- * No GC.
28
+ * No GC ,can add if free time .
24
29
* 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.
27
32
28
33
### change log:
29
34
* Add base class java.lang.* , java.io.PrintStream
You can’t perform that action at this time.
0 commit comments