This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Gcj
- To: java-discuss@sourceware.cygnus.com
- Subject: Re: Gcj
- From: Kresten Krab Thorup <krab@yl.is.s.u-tokyo.ac.jp>
- Date: 23 Jul 1999 23:18:43 +0900
- References: <m2u2qxzesu.fsf@magnus.bothner.com>
Since I started using gcj for this verifier I'm writing, it has
started to annoy me that it is so expensive to use static methods.
And well, this must be something that you have discussed a lot, so
there is no easy solution. But maybe it would be worth it to compile
static method calls using an indirection, and then flip that
indirection pointer the first time it is used? This is no worse than
calling a shared library function (on most modern OS'es).. And it
would also bring gcj closer to spec; the initialization is supposed to
happen *at* the first real use. Then there's just static field
initializaiton left...
Just 2 cents, ...
-- Kresten
Kresten Krab Thorup, Ph.D. Candidate
c/o Yonezawa Laboratory
Department of Information Science
The University of Tokyo
7-3-1 Hongo, Bunkyo-ku, Tokyo 113 Japan
Fax: +81-(0)3-5689-4365
Phone: +81-(0)3-3812-2111 ext 4118
Mobile: +81-(0)90-3693-5715
- Follow-Ups:
- Re: Gcj
- From: Anthony Green <green@cygnus.com>