This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcj optimization situation?



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]