KLIJava: KL1 to Java Compiler and Runtime System
KLIJava
make KL1 programs run anywhere.TM
Japanese version is also available.
Introduction
KLIJava is a compiler that translates KL1 programs to Java programs.
Now you can run KL1 programs under Java VM using KLIJava
(but KLIJava compiler itself does not work under Java VM yet).
Requirements
- Compiler
- KLIC-3.002
- Compiled Code
- JDK 1.1 or newer
README
Download sources (March 7, 1999)
API Reference (under construction)
Sample applet compiled by KLIJava
Please send some comments to
satoshi@ueda.info.waseda.ac.jp.
Software License Agreement
- KLIJava is based on KLIC 3.002.
- KLIJava is licensed under "Terms and conditions for use of
ICOT Free Software".
Please see COPYRIGHT and
COPYRIGHT-JIPDEC for more information.
- The copyright of modified codes is owned by
Satoshi KURAMOCHI.
Benchmarks
Execution Time of Compiled Codes (unit: sec.)
compiler | KLIC | KLIJava | |
primes(10000) | 0.37 | 15.32 | (x 41.40) |
kkqueen(10) | 0.33 | 15.34 | (x 46.48) |
life(120,38,38,4,4) | 1.22 | 22.06 | (x 18.08) |
mastermind(3,3) | 0.77 | 27.34 | (x 35.51) |
- MMX-Pentium 266MHz, 64MB, Linux
- KLIJava: JDK 1.1.7, w/o JIT, -ms32m -mx32m -noasyncgc -noclassgc -noverify
- KLIC: 3.002, gcc -O2
Things to do
- Some built-in predicates (UNIX interface, timer, postmortem, etc.)
- Some generic object classes (I/O, etc.)
- Distributed Execution
- Tracer
etc.
References
- Daigo Sekita.
Inside KLIC Version 1.0, 1998.
- jProlog.
Related Links
Back
satoshi@ueda.info.waseda.ac.jp