This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj-jit: what is it?


From: Tom Tromey <tromey@redhat.com>

> >>>>> "Ranjit" == Ranjit Mathew <rmathew@gmail.com> writes:
>
> Ranjit> See:
> Ranjit>   http://gcc.gnu.org/ml/java/2003-01/msg00022.html
> Ranjit>   http://gcc.gnu.org/ml/java-patches/2004-q3/msg00481.html
>
> It is also in the manual, but not in the most useful format, see:
>
> http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcj/libgcj-Runtime-Properties.html#libgcj-Runtime-Properties
>
> Look through here for the jit stuff.
> I made a note to write a new node for the manual describing this.

I have prepared the following shell script to invoke gij involving JIT
compilation.  In this case, $HOME/gcj-cache/ holds shared libraries
generated by GCJ.

====================
#!/bin/sh
GCJ=/usr/bin/gcj
CACHEDIR=$HOME/gcj-cache
OPT=-O2

if [ ! -d $CACHEDIR ]; then
	mkdir -p $CACHEDIR
fi

gij -Dgnu.gcj.jit.compiler=$GCJ -Dgnu.gcj.jit.cachedir=$CACHEDIR -Dgnu.gcj.jit.options=$OPT $*
====================

  Kazuyuki Shudo	shudo@computer.org	http://www.shudo.net/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]