1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
.\" jcomp.1 -- describe the use of jcomp
.\" Written by Charles Briscoe-Smith; refer to the file LEGAL for details.
.TH JCOMP 1 "19 Jul 1998"
.SH NAME
jcomp \- compile source code in a Java(tm)-like language
.SH SYNOPSIS
.B jcomp
.RB [ -O ]
.RB [ -E ]
.RB [ -s
.IR start-class ]
.RB [ -o
.IR output-file ]
.IR java-file \&...
.SH DESCRIPTION
.B jcomp
reads all the
.IR java-file s
specified on its command line, parses them as source code in a
language which is a subset of the Java(tm) language, and generates
a native binary in
.IR output-file .
.PP
Please note that
.B jcomp
internally makes use of
.BR bock (1),
and is therefore
.B not
meant as a production compiler.
.SH OPTIONS
Options must be given in tha same order they are described here,
and before any
.IR java-file s.
.IP -O
Indicates that the C compiler's optimisation should be turned on.
.IP -E
Indicates that the program should not be compiled into a binary;
instead, the intermediate C code will be written to standard output.
.IP -s
Specifies the name of the class whose
.B main()
function should be called when the program is run.
.IP -o
Specifies which file to write generated native program to. If not specified,
.B jcomp
writes to the file
.IR j.out .
.SH FILES
.IP \fI/usr/share/bock/lib/*\fR
A subset of the standard Java library, included automatically by jcomp.
.SH "SEE ALSO"
The forthcoming
.B Jackal
compiler for the Java(tm) language.
.PP
.BR bock (1),
.IR /usr/doc/bock/* .
.SH DIAGNOSTICS
If
.B jcomp
detects an error or a construct it cannot compile, it writes a
message to its standard error output and terminates with a non-zero exit
code. There are many errors which
.B jcomp
does not detect.
.SH BUGS
See the
.BR bock (1)
man page and
.I /usr/doc/bock/BUGS
for details.
.SH AUTHOR
.B jcomp
was written by Charles Briscoe-Smith. I own the copyright to this
program and its accompanying documentation. Please see the file
/usr/doc/bock/copyright for more information.
.PP
"Java", "Sun" and "Sun Microsystems" are trademarks or registered
trademarks of Sun Microsystems, Inc.
See the
.BR bock (1)
man page for more details.
|