613-518-1166 info@zimdatabases.com

ZIM Language Reference

COMPILE

< All Topics

Compiles an application program.

Syntax

COMPILE progdocname

Parameters

progdocname

The name of the application document that contains the application program to be compiled.

Comments

The COMPILE command reads the program compiles it, and stores the compiled version in a separate disk file. The source program is then marked as being compiled. Thereafter, the compiled version of the program is used when that program is called.

As the Compiler processes an application program, it reports any errors that it finds in the command statements. The syntactic and semantic checks performed during compilation are identical to those performed when the program is parsed using the PARSE command or when the source program is run interpretively.

If no fatal errors are detected, the Compiler completes the compilation. If a fatal error is detected, the compilation terminates.

The PARSE command should be used before compiling a program to ensure the program is syntactically correct.

The application program is identified as compiled even if errors are encountered during compilation.

The UNCOMPILE command can be used to mark a compile program as “not compiled”. The SET RUNTIME OFF command forces the software to execute all application programs interpretively.

Example

compile MyProg

 

See Also

$COMPILESTATUS

GENERATE

PARSE

SET COMPILEMODE

SET RUNTIME

SET SQLCOMPILE

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents