Current Status

Jeff Sturm jsturm@sigma6.com
Tue Feb 16 15:32:00 GMT 1999


Actually javac performs several simple optimizations, including method
inlining and constant folding. More aggressive optimizations are
usually left to a JIT or native-code compiler (loop unrolling may be one
of these, I'm not sure).
Jeff
dan wrote:
>> Does the bytecode compiler perform any optimizations? Are loops unrolled,
> methods inlined, etc, within the bytecode? If so, this is an excellent
> reason to start using GCJ, as no other bytecode compiler that I am aware
> of performs any optimizations.
>> -dan
>> Tom Tromey wrote:
>> >
> > You can use gcj to generate bytecodes using the `-C' option. Of
> > course, you still need a runtime, so this probably isn't all that
> > interesting. You could use gcj to compile and then use Sun's runtime,
> > I suppose. I don't remember ever trying this myself.
> >
> > Tom

-- 
Jeff Sturm
jsturm@sigma6.com


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /