Entering the trampoline in JIT mode

Alexandre Oliva kaffe@rufus.w3.org
23 Jun 1999 14:39:38 -0300


On Jun 21, 1999, Samarjeet S Tomar <tomar@cse.psu.edu> wrote:

> In the JIT mode of kaffe, from which method is the trampoline
> entered when a method is compiled/executed ?

From the first method that invokes the method for which the trampoline 
was created.  It causes the JIT compilation of the called method, and
the replacement of the pointer to the trampoline so that it points to
the JIT-compiled code.

> I added a call to a simple function ,which just prints a line, to
> trampolines.c , but that has made no difference at all in the execution.

You'd have to change the trampoline asm code to make some difference,
but you don't really want to do it :-)

> Doing a gmake after making the change does not even involve
> trampolines.c When is the file used ?

Where did you start `gmake'?  AFAIR, it's #included by some file
within kaffevm.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists