Gentee Programming Language > Documentation > Launch Download documentation

Launch from Command Line

Compilation and execution of a Gentee program is performed with the help of the console application gentee.exe.

gentee.exe [switches] <source file> [arguments]

source file is an required parameter and it should specify name of the compilation file or a file with bytecode to be executed.

switches - options. The following options are available during compilation process.
-r – Launch the program after the compilation is accomplished.
-v – Do not save bytecode to the file. This option can be used together with the previous one, if you don’t need a compiled file.
-l – Do not link the standard library.
-s – Do not display service message during compilation or running.
-i – A combination of -r -v -s switches. Gentee works like an interpretator.
-n - Ignore the command '#!' in the first string of the file.
-o <output file> – Specify a name for the compiled file. In this case, next part should be the name of the output file output file. This feature is used if you want the file with bytecode to have a name (or destination) different from the source file. By default, the compiled bytecode is stored in the file with .ge extension.

-d – If this option is specified, all other command line parameters are considered as define definitions. Here you can specify necessary macros of the compilation. It is necessary to prefix the quotation mark with '\'. Macros’ definitions should be separated by semicolons. By default, all components after the filename are used as command line parameters, when application is launched.

If you specified a file with executable bytecode as an input file, all parameters after executable file’s name are considered as command line parameters.

gentee.exe -r -v myfile.g
gentee.exe -r myapp.g "command line agrument" 10 20
gentee.exe -s myapp.ge "command line agrument"

See also

    How to create an EXE file    Error codes and message codes


 Copyright © 2004-2006 Gentee Inc. All rights reserved.