Launch from Command Line
A program in the Gentee language is compiled and run with the console application gentee.exe. Command line options don't cover all gentee features. So, use Compilation profiles for specifing advanced parameters of the compilation.
gentee.exe [switches] <Gentee file> [arguments]
switches
Compiler options. You can use the following options during compilation.
| -c | Only compilation. Do not run the program after the compilation. |
| -d | Add the debug information into the byte-code. |
| -m <macros> | Defining compilation macros. You can define the necessary compilation macros after -m. You should use '\' before quotation marks. Macro definitions must be separated with a semicolon. Example: -m "MODE=1;NAME=\"My Company, Inc\""\ |
| -f | Create a .ge file with byte code. It will be created in the same directory and will have the same name. |
| -n | Ignore the command '#!' in the first string of the file. See Using '#!' command. |
| -o <GE or EXE filename> | Specify a name for the compiled file. In this case, next part should be the name of the output file. This feature is used if you want the file with bytecode or exe file to have a name (or destination) different from the source file. By default, the compiled byte-code is stored in the file with .ge extension. |
| -p <profile name> | Use profile parameters from the file gentee.ini. See Compilation profiles. |
| -s | Do not display service message during compilation or running. |
| -t | Automatically convert text to the ОЕМ encoding (DOS encoding) when displaying it on the console. |
| -d | Include debug information into the byte-code. |
| -w | Wait for pressing key at the end of the compilation. |
| -z[d][n][u] | Optimize a byte-code ( -f or -x compatible ) -zd - Delete defines. -zn - Delete names. -zu - Delete no used objects. -z equals -zdnu. Combine -zd, -zn and -zu. |
| -x[d][g] | Create executable EXE file. -xd - Dynamic usage of gentee.dll. -xg - Make a gui application. In default a console application is created. -xdg - Combine -xd and -xg. |
| -i <icon file> | Link .ico file ( -x compatible ). Example -i "c:\data\myicon.ico" |
| -r <res file> | Link .res file ( -x compatible ). Example -r "c:\data\myres.res" |
Gentee file
This parameter is a required one and must define the name of the compilation file or the file with byte code to be executed.
arguments
All parameters after the name of the file being run are command line parameters that will be passed over to the program being run.
Examples
gentee.exe -t myfile.g
gentee.exe -s myapp.g "command line argument" 10 20
gentee.exe -o "c:\temp\app.ge" -c myapp.ge "command line argument"
gentee.exe -p myprofile "c:\my programs\myfile.g"