gcj: always emit static array data
Per Bothner
per@bothner.com
Mon Aug 16 08:01:00 GMT 1999
Anthony Green <green@cygnus.com> writes:
> Thinking about it for a second now, it seems like we should be able to
> get the compiler to create these array objects ahead of time, just
> like we do for instances of java.lang.Class.
In fact, there is (dis-abled) code in the compiler to do it.
It's in java_lang_expand_expr case NEW_ARRAY_INIT in expr.c.
The only thing missing to enable it is pre-generating (static) vtables
for primitives types and arrays of primitive types.
There should be a note about this in the internal TODO file (which I've
repeatedly suggested should be added to the web site).
--
--Per Bothner
bothner@pacbell.net per@bothner.com http://home.pacbell.net/bothner/
More information about the Gcc-patches
mailing list