|
-X <file> |
Define an alternate XML configuration file |
|
Allow to define the plugins instantiated by the Tom platform |
|
--cCode | -c |
Generate C code (default is Java) |
|
The output file has the extension .tom.c |
|
--camlCode |
Generate Caml code (default is Java) |
|
--camlSemantics |
Verify with caml semantics for match) |
|
--compile |
Activate the compiler (by default) |
|
--destdir | -d |
Specify where to place generated files. |
|
By default, Tom generates files close to the input file. However (like
javac), this option allows to specify a directory where generated
files have to be put. When compiling a Java file, Tom is smart enough to
parse the package definition and generate the pure-Java file in the same
package architecture. |
|
--eclipse |
Activate Eclipse mode |
|
--encoding <charset> | -e |
Specify the character encoding |
|
--expand |
Activate the expander (by default) |
|
--help | -h |
Show the help |
|
Give a brief description of each available options |
|
--import <path> | -I |
Path to included files |
|
Even if inclusion can be performed using relative path, this option specifies
list of path where Tom look for when an inclusion has to be done by
%include construct |
|
--intermediate | -i |
Generate intermediate files |
|
The compiler manipulates Abstract Syntax Trees. This option dumps the AST
after each phase (parsing, checking, expansion, compilation) This option is
useful to analyze the compilation process |
|
--jCode | -j |
Generate Java code (by default) |
|
--lazyType | -l |
Use universal type |
|
This option makes Tom using a less restrictive backend. In Java, the
universal sort Object is used more often. This reduces static typing but
allows to manipulate inherited data-structures |
|
--noDeclaration | -D |
Do not generate code for declarations |
|
Avoid multiple declaration of symbols when structures are inherited or when
multiple inclusion of common data structures are performed |
|
--noOutput |
Do not generate code |
|
No output file is generated. It allows to see warnings and errors without
generating the result |
|
--noReduce |
Do not simplify extracted constraints (depends on –verify) |
|
--noStatic |
Generate non static functions |
|
--noSyntaxCheck |
Do not perform syntax checking |
|
--noTypeCheck |
Do not perform type checking |
|
--optimize | -O |
Optimize generated code |
|
Add an optimization phase to the compilation process. This removes unused
variables and performs some inlining. |
|
--optimize2 | -O2 |
Further optimize generated code (does not imply -O ) |
|
--output | -o |
Set output file name |
|
By default, Tom infers the name of the generated file by replacing the
initial file extension by .java, .tom.c or .tom.ml,
depending on the chosen target language. This option allows to
explicitly give the name of the generated file. |
|
--pCode |
Generate Python code |
|
--parse |
Activate the parser (by default) |
|
--pretty | -p |
Generate readable code with indentation |
|
By default, the generated code is synchronized with the source code. This
simplifies error reporting but makes the code more difficult to read. This
option beautifies the generated code. |
|
--prettyPIL | -pil |
Prettyprint the intermediate language |
|
--protected |
Generate protected functions |
|
In Java, this option forces the generation of protected functions, instead
of private ones, for symbol manipulation functions |
|
--verbose | -v |
Set verbose mode on |
|
Give duration information about each compilation passes |
|
--verify |
Verify correctness of match compilation |
|
--version | -V |
Print the version of Tom |
|
--wall |
Print all warnings |
|
Useful in debugging phase |
|