This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
crazy idea: gcj as a caching jit?
- From: Adam Megacz <gcj at lists dot megacz dot com>
- To: java at gcc dot gnu dot org
- Date: 02 Feb 2002 15:20:57 -0800
- Subject: crazy idea: gcj as a caching jit?
- Organization: Myself
Had an idea today...
With Bryce's indirect-invoke patches, you can actually use gcj as a
caching JIT (like Microsoft's .NOT) -- hack interpret.cc to pass the
bytecodes through gcj, produce com.yourdomain.yourclass.so, dlopen()
it, and cache the .so it somewhere with an md5 of the original .class
file (to detect if newer versions of the class have arrived and need
to be recompiled).
Yet another reason I'm keen on porting gcj to more platforms -- gcc
targets a *ton* of platforms, many of which don't have
JITs. Leveraging gcc's backend makes porting gcj an easy way to get a
JIT for platforms that don't have HotSpot.
- a