EnglishРусский  

   Compilation profiles

Ads

Installer and installation software
Commercial and Freeware installers.

Compilation profiles

Besides specifying compilation options directly when running Gentee program, you can store all necessary parameters in a separate profile and you will only have to specify the name of this profile when you run the compiler. Profiles must be described in the text file gentee.ini located in one directory with gentee.exe. The profile name is specified after the option -p. For example: gentee.exe -p myoptions test.g. By default, the compilation profile named default is used when you run a Gentee program.

You can specify a compilation profile at the beginning of your .g source file. See Using '#!' command for more details.

asm = <0 1>If 1, the compiler translates the bytecode to assembler. At this moment, it does NOT translate ALL bytecode to assembler but this option can increase the speed of some programs in several times.
silent = <0 1>If 1, do not display service messages during the compilation or launch.
charoem = <0 1>If 1, convert strings into the OEM (DOS) encoding when displaying them on the console.
debug = <0 1>If 1, the debug information will be included into the byte-code during the compilation.
gefile = <0 1>If 1, create a .ge file during the compilation.
norun = <0 1>If 1, do not run the program after the compilation.
numsign = <0 1>If 0, ignore the first string with #! in the body of the program being run.
output = <.ge or .exe filename>You can specify the full path and name of the creating .ge or .exe file here.
define = <macro = value>The parameter is used to define compilation macros. You can specify some define parameters: define1,define2,define3....
include = <.g or .ge file>You can specify additional .g or .ge files that will be added at the beginning of the compilation. It is the same as using the include command in a Gentee program. You can specify some include files with include1,include2,include3....
libdir = <directory>The parameter allows you to specify the search path for .g or .ge files included in the program. If the path is specified, it is enough to specify only the file name. You can specify some search directories with libdir1,libdir2,libdir3....
wait = <0 1..n>If 1, the compiler will wait for pressing key at the end of the compilation. If you specify a number greater 1 then the compiler will be wait <wait> seconds and close the console window.
optimizer = <0 1 (d n u)>If 1, the byte-code will be optimized. You can specify the additional parameters d, n or u after 1 divided by a space character.
d - Delete defines.
n - Delete names.
u - Delete no used objects.
For example: optimizer = 1 d n u
exe = <0 1 (d g r a)>If 1, the executable EXE file will be created. You can specify the additional parameters d g a r divided by a space character.
d - Dynamic usage of gentee.dll.
g - Make a gui application. By default a console application is created.
a - Specify this option if your program or its part was compiled with asm option.
r - Specify this parameter if you want that the bytecode is translated to assembler each time when you run the program. Don't use this parameter if your program has been compiled with asm option.
For example: exe = 1 d g r
icon = <.ico file>You can specify additional .ico files for EXE file. It is possible to specify some icon files with icon1,icon2,icon3....
res = <.res file>You can specify additional resource .res files for EXE file. It is possible to specify some resource files with res1,res2,res3....
args = <parameter>Command line parameter for launching of the program . It is possible to specify some command line parameters with args1,args2,args3....

Additional features

You can use the following predefined parameters.

%GNAME%The name of the compiling Gentee file without the extension.
%GPATH%The full path to Gentee file.
%EXEPATH%The full path to the gentee.exe compiler.

Example

[default]
charoem = 1
gefile = 0
libdir = %EXEPATH%\lib
libdir1 = %EXEPATH%\..\lib\vis
include = %EXEPATH%\lib\stdlib.ge

[myoptions]
charoem = 1
output = c:\My Files\Programs\%GNAME%.ge
libdir = %EXEPATH%\lib
include = %EXEPATH%\lib\stdlib.ge
include1 = c:\mylibs\mylib.g
define = MODE = 1
define1 = COMPANY = "My Company, Inc."