jcomp(1)

jcomp1

Compile source code in a java(tm)-like language

Usage

jcomp [-O] [-E] [-s start-class] [-o output-file] java-file ...

Overview

jcomp reads all the java-files 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 output-file.

Please note that jcomp internally makes use of bock(1), and is therefore not meant as a production compiler.

Options

Options must be given in tha same order they are described here, and before any java-files.

-O

Indicates that the C compiler's optimisation should be turned on.

-E

Indicates that the program should not be compiled into a binary; instead, the intermediate C code will be written to standard output.

-s

Specifies the name of the class whose main() function should be called when the program is run.

-o

Specifies which file to write generated native program to. If not specified, jcomp writes to the file j.out.

Files

/usr/share/bock/lib/*

A subset of the standard Java library, included automatically by jcomp.

Diagnostics

If 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 jcomp does not detect.

Releases

Unchanged in 4 releases since Debian 2.1 (Slink).

  1. 2.1–3.1

Bugs

See the bock(1) man page and /usr/doc/bock/BUGS for details.

Author

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.

"Java", "Sun" and "Sun Microsystems" are trademarks or registered trademarks of Sun Microsystems, Inc. See the bock(1) man page for more details.

From bock 0.20.2.6 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.