This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj inner class syntax sugar.
Steve Pribyl wrote:
A quick recap
The most annoying example is this
../../kernel/com/netfuel/dir/dds/StorageProvider$1DomainStarter.class
should compile to
../../kernel/com/netfuel/dir/dds/StorageProvider$1DomainStarter.o
and then get archived.
Not necessary. Alternatively:
./../kernel/com/netfuel/dir/dds/StorageProvider*.class
should compile to
../../kernel/com/netfuel/dir/dds/StorageProvider.o
Note that gcj allows:
gcj -c Foo*.java -o Foo.o
or:
gcj -c Foo*.class -o Foo.o
One suggested mode is to compile a whole package at once:
gcj -c package/*.class -o package.o
This actually speeds up compilation quite a bit, and may generate
slightly better code. The only disadvanage is with statically linked
archives, since most linkers can't split .o files.
--
--Per Bothner
per@bothner.com http://per.bothner.com/