Difference between revisions of "SET COMPILE"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET COMPILE=
 
 
 
==Class==
 
Environment
 
 
 
 
==Purpose==
 
==Purpose==
 
Enable or disable automatic recompiling of modified source programs
 
Enable or disable automatic recompiling of modified source programs
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
COMPILE, SET DEVELOPMENT, DO, SET PSHARE
+
[[COMPILE]], [[DO]], [[SET DEVELOPMENT]], [[SET PSHARE]]
  
  
Line 25: Line 18:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
set compile on
 
set compile on
do main_prog</pre>
+
do main_prog</code>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Set_Commands]]
+
[[Category:Set_Commands|COMPILE]]
 +
[[Category:Environment]]
 +
[[Category:Environment Set Commands]]

Latest revision as of 16:58, 12 November 2009

Purpose

Enable or disable automatic recompiling of modified source programs


Syntax

SET COMPILE ON | OFF | (<expL>)


See Also

COMPILE, DO, SET DEVELOPMENT, SET PSHARE


Description

The SET COMPILE command controls whether program files will be compiled as they are accessed, generating an object file that will then run. If SET COMPILE is ON, each time a program is run, it is compiled and an object file is generated. Files with a ’.prg’ extension have compiled object files with a ’.dbo’ extension, any other object files have the same extension as their source file, except that it ends with an ’o’. The object file, not the source file is then executed. When SET COMPILE is OFF, programs are run interpreted. Each line of the program is read and executed one after the other. By default, COMPILE is ON.

COMPILE should be set OFF when developing applications. COMPILE should be set ON once the application has been debugged and is running properly.


Example

set compile on
do main_prog


Products

Recital Server, Recital