This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: crazy idea: gcj as a caching jit?
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: Sun, 03 Feb 2002 12:59:19 +1300
- Subject: Re: crazy idea: gcj as a caching jit?
- References: <86k7tvqxly.fsf@megacz.com>
Adam Megacz wrote:
>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).
>
Yes, a few people have proposed something like this in the past. You
could probibly do this just by writing a special classloader, no need to
hack interpret.cc. I think its a bit too hackish myself ;-)
regards
Bryce.