CLCD 1.1 it is, so I grabbed the source ball.
I downloaded eMbedded VC 4.0 from microsoft, and gave it a go at compiling the KVM. Right out of the tar ball, I got a few compile errors, which were missing dependencies: nativeFunctionTableWin.c ROMjavaWin.c
These files live in the tools/jcc directory, according to the dependency information, so I dove into that directory. In that directory, surprise, is a Makefile.
So I open up the make file and find that I need to generate those files, but it阅读全文>
发表于 @ 2005年12月01日 09:16:00|评论(loading...)|编辑|收藏
一篇关于使用Java作为中间语言的编译器的实现文章:
Java as an Intermediate Language
http://www.cs.cmu.edu/~scandal/html-papers/javanesl/index.html
Compiling the Java Programming Language
http://www.bearcave.com/software/java/java_compiler.html
使用VM相关的编程语言
http://www.robert-tolksdorf.de/vmlanguages.html
Programming Language Research的
http://www.cs.cmu.edu/afs/cs.cmu.edu/user/mleone/web/language-research.html阅读全文>
发表于 @ 2005年10月19日 14:14:00|评论(loading...)|编辑|收藏
在参数传递中,有两个很重要的问题必须得到明确说明:当参数个数多于一个时,按照什么顺序把参数压入堆栈 函数调用后,由谁来把堆栈恢复原装 在高级语言中,通过函数调用约定来说明这两个问题。常见的调用约定有: stdcall cdecl fastcall thiscall naked call
阅读全文>
发表于 @ 2005年06月11日 11:28:00|评论(loading...)|编辑|收藏
如果要自己来写Java的编译器,我是指出编译出来的目标程序文件是Java的class执行文件.那么这里有个很好的工具: jasmin. 这个工具是一个Java的汇编编译器.能够将类式汇编的bytecode指令,翻译成最终的Java的class文件.
阅读全文>
发表于 @ 2005年06月10日 11:41:00|评论(loading...)|编辑|收藏