This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: -X options?
Linuxhippy writes:
> great that gij now has a jit, the interpreter was too slow for many uses.
>
> > > and are the jit-results beeing cached from run to run (btw how hard
> > > would it to implement this)?
> >
> >They're always cached from run to run. But this isn't always
> >practical, since the dynamic linker can't cope with a huge number of
> >shared libs, and neither can libgcj.
> >
> >
> Hmm, of couse.
>
> But wouldn't it be an option to create at compilation time(jit) both,
> the shared-lib and the corresponding object-file?
> At next startup we could link all object files laying arround together
> into one shared-library with an hacked non-checking linker.
We could do that. We don't.
> Btw. is the jit activated the first time after a method has been called
> a number of times or are all methods compiled at the first run?
First time. We don't know how to replace methods once they're loaded.
It would be a fun project for someone.
Andrew.