A gcj
command is like a gcc
command, in that it
consists of a number of options and file names. The following kinds
of input file names are supported:
file.java
file.class
file.zip
file.jar
.class
files, all of
which are compiled. The archive may be compressed.
@
file
.java
source files, but that
may change.)
Each named file is compiled, just as if it had been on the command line.
library.a
library.so
-l
libname
gcc
manual.
You can specify more than one input file on the gcj
command line,
in which case they will all be compiled. If you specify a
-o
FILENAME
option, all the input files will be compiled together, producing a
single output file, named FILENAME.
This is allowed even when using
-S
or -c
,
but not when using -C
or --resource
.
(This is an extension beyond the what plain gcc
allows.)
(If more than one input file is specified, all must currently
be .java
files, though we hope to fix this.)