[antlr-interest] GCJ

Pete Forman pete.forman at westerngeco.com
Mon Jul 14 09:01:28 PDT 2003


At 2003-07-14 23:06 +1000, Robert Colquhoun wrote:
>At 11:28 AM 14/07/2003 +0200, Ric Klaren wrote:
> >On Mon, Jul 14, 2003 at 12:19:32PM +1000, Robert Colquhoun wrote:
> > > Also java source files are kind of different from C/C++ there are no
> > > includes(making for a much faster compile) and dependencies can be very

Includes are done with the import statement.

> > > complicated it might be better if the configure/make system just compiles
> > > everything from scratch.  This would also get rid of the 300k java_deps
> > > file reducing download size.
> >
> >I started to use that stuff after java screwed up dependencies on me a few
> >times. Maybe that it's better now. In general this makefile thing compiles
> >antlr's java stuff faster than default javac on all the files on my Sun.
> >Also it builds along all the other antlr stuff I'm interested in.
>
>As soon as you make a java change you need to recalculate the dependency
>tree using some tool.  That's not happening with the configure/make stuff
>at the moment there is only the original dependencies.

The Java compiler handles dependencies internally.  If you compile
just one file then all the .java files it references are compiled as
well (including indirect references) if they have no .class.  It is
often enough just to name those files with a main() on javac's command
line.

The traditional way of compiling C/C++ one file at a time under make
or similar is not well suited to Java.  It is best if javac can be
invoked once only during a build.

-- 
Pete Forman                -./\.-  Disclaimer: This post is originated
WesternGeco                  -./\.-   by myself and does not represent
pete.forman at westerngeco.com    -./\.-   opinion of Schlumberger, Baker
http://petef.port5.com           -./\.-   Hughes or their divisions.


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list