compiling multiple source files at once
Mo DeJong
mdejong@cygnus.com
Mon Feb 5 18:25:00 GMT 2001
On 5 Feb 2001, Per Bothner wrote:
...
> I also added support for:
> gcj -c -o foo.o @foo.list
> where foo.list is a file containing a list of input file names.
> This feature (which also exists in Sun's javac) is sometimes
> convenient, especially is there may be problems with overlong
> command lines. The multiple-input-files-on-the-command-line
> is essentially syntactic sugar for this feature. I.e.
> gcj -c -o foo.o A.java B.java C.java
> is converted by jvspec to:
> gcj -c -o foo.o @/tmp/tmpfile
> where /tmp/tmpfile contains "A.java\nB.java\bC.java\n".
If you are interested in some test cases for the @file
argument feature, see the following set of Jacks tests:
http://oss.software.ibm.com/developerworks/opensource/cvs/jikes/~checkout~/jacks/docs/tests.html#argument-expansion-non-jls
cheers
Mo DeJong
Red Hat Inc
More information about the Java
mailing list