Next: Input Options, Up: Invoking gcj
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:
.java
.class
.zip
.jar
.class
files, all of
which are compiled. The archive may be compressed. Files in
an archive which don't end with `.class' are treated as
resource files; they are compiled into the resulting object file
as `core:' URLs.
@
file.java
source files, but that
may change.)
Each named file is compiled, just as if it had been on the command line.
.a
.so
-l
libnameYou 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.)