Multiple file compilation patch

Jeff Sturm jsturm@one-point.com
Sun Mar 18 07:54:00 GMT 2001


On 2001年3月18日, Bryce McKinlay wrote:
> > > $ gcj -c at/dms/classfile/*.java
> >
> > This case should work as a *multiple* compilations of a single .java
> > file each time, because there is no -o flag. I.e jc1 should be
> > invoked once per .java file. It seems to do so when I tried a test.
>> Yes, you're right. I actually meant something like "gcj --shared
> at/dms/classfile/*.java -o libclassfile.so" I also figured out you can just
> omit the "-o" and trick it into using the old behaviour, then just rename
> the resulting a.out to whatever was wanted.

I'm finding that "gcj -c *.java" does the right thing but
"gcj -c *.class" dies miserably (it tries to name the object file after
the file list, among other things):
[jsturm@neptune testsuite]$ gcj -c G19990301_01.class
[jsturm@neptune testsuite]$ gcj -c foo.class
[jsturm@neptune testsuite]$ gcj -c G19990301_01.class foo.class
G19990301_01.java: In class `foo':
G19990301_01.java: In method `()':
G19990301_01.java:0: bad pc in exception_table
Jeff


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /