B.1 Using the Oolong Assembler

Name

COM.sootNsmoke.oolong.Oolong Assemble an Oolong source file.

Abbreviated name

 Oolong 

Synopsis

 java COM.sootNsmoke.oolong.Oolong [-g] [-n] [-d directory]     file1.j ... java Oolong [-g] [-n] [-d directory] file1.j ... 

Description

Oolong reads the file file1.j, which is expected to contain a number of class descriptions in the Oolong language, as described in section B.4. The compiled classes are placed in separate files. The name of the file is the name of the class (with any package name removed) with the extension .class.

For example, suppose file1.j contains this class declaration:

 .class foo/bar 

The resulting file will be called bar.class.

The main executable class is called COM.sootNsmoke.oolong.Oolong. The class Oolong, in the default package, is also provided, which has a main method that calls the main in COM.sootNsmoke.oolong.Oolong. This class is a convenience if you don't want to type the longer name when compiling.

Options

g Use .line and .var directives to generate debugging information.
n Generate debugging information, but use automatically generated line numbers. The automatically generated line numbers correspond to the lines of the source code.
d directory Place generated .class files into directory.



Programming for the Java Virtual Machine
Programming for the Javaв„ў Virtual Machine
ISBN: 0201309726
EAN: 2147483647
Year: 1998
Pages: 158
Authors: Joshua Engel

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net