FAQ Update
Jeff Sturm
jsturm@sigma6.com
Wed Nov 3 20:15:00 GMT 1999
On Thu, 4 Nov 1999, Bradley Schatz wrote:
> >
> > * There is a comment, "compile with libgcj -O2". however, there are no released
> > versions with which this works (or at least that I know of...)
>
> Anyone have comments/experience with this?
I have never successfully compiled libgcj with optimizations, using the
gcj-2.95.1 compiler. (I get undefined symbols.)
I'm working with the CVS trunk for now, with various patches applied... I
can compile libgcj with -O2, almost (jc1 dumps core on MessageFormat.java
and Vector.java).
The "safe" answer is that it isn't possible, for now, unless you are
adventurous... it should improve by the next release.
> >
> > * There is no documentation about where/when gcj will scan .java files when
> > looking for information about referenced classes and there are no
> > .class files available. Is it classpath? "Enquiring minds
> > want to know"
>
> Do you mean when compiling a mixture of .java and .class files? Could you rephrase
> this as a question that someone may concisely answer? Yes, more information on
> classpaths would be good.
I don't know exactly how gcj resolves classes (I haven't examined the code
closely) but it seems to favor .class files in the CLASSPATH, if any...
otherwise it will use the source (.java), also in the CLASSPATH. If it
can't find either it throws an error.
--
Jeff Sturm
jsturm@sigma6.com
More information about the Java
mailing list