This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj optimization situation?
- To: java at gcc dot gnu dot org
- Subject: gcj optimization situation?
- From: Adam Megacz <gcj at lists dot megacz dot com>
- Date: 08 Nov 2001 20:45:21 -0800
- Organization: Myself
A few questions about gcj and gcc's optimizations:
- I read somewhere that gcj ignores the -O option -- does that mean
that all gcj output (.class and .o) is unoptimized?
- Is there any way I can get gcj to do intra-class (not inter-class)
inlining? I have a lot of one-liner private methods that really
should be inlined -- I've been using javago, but it has a tendency
to corrupt bytecodes, so it's a huge pain to use.
- Will I get better optimizations by running gcj on .java files
(outputting .o files) than if I use javac to compile .java -> .class
and gcj to compile .class -> .o?
- Also, I've noticed that despite being written in native C code, gcj
compiles .java -> .class way slower than javac (w/ HotSpot). Is this
because it's doing more analysis on my code?
Thanks!
- a
--
If the Boston Tea Party happened today, our politicians would denounce
it as an act of Terrorism.