File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 2
2
. /class2ir /target
3
3
. /class2ir /.idea
4
4
. /app /out /classes
5
+ . /app.exe
Original file line number Diff line number Diff line change 2
2
#java2llvm
3
3
An Example Project Show Convert Java Byte Code to LLVM IR assembler , compile standalone executable file
4
4
5
- This project is baseed on [ class2ir] ( https://github.com/MParygin/class2ir )
5
+ This project is based on [ class2ir] ( https://github.com/MParygin/class2ir )
6
6
7
7
Class2ir look like based on an old llvm version, it can't running on greate than llvm 3.9.
8
8
So i changed some instruct syntex, and repair bug.
9
9
The class2ir can print number on console.
10
10
11
11
Currently:
12
- Can generte linux x64 executable file.
12
+ Tested CentOS x64 executable file.
13
13
14
14
Make:
15
- 1 . Enter directory java2exe/
16
- 2 . Run java -jar target/
15
+ 1 . Enter directory java2llvm/
16
+ 2 . Run build.sh, then you will get app.exe here.
17
+
18
+ Request:
19
+ java
20
+ llvm / clang
21
+ make
17
22
18
23
Known issue:
19
24
1 . No GC.
20
- 2 . May be some of java instruction can't work, need test
21
- 3 . some of java instruction no convertion , see MV.java
22
-
25
+ 2 . Maybe some of java instruction can't work, need test
26
+ 3 . some of java instruction not implementation , see MV.java
27
+ 4 . Object memory allocation
23
28
24
29
change log:
25
30
1 . Add base class java.lang.* , java.io.PrintStream
You can’t perform that action at this time.
0 commit comments