Difference between revisions of "SET COMPILE"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Enable or disable automatic recompiling of modified source programs
 
Enable or disable automatic recompiling of modified source programs
 
  
 
==Syntax==
 
==Syntax==
 
SET COMPILE ON | OFF | (<expL>)
 
SET COMPILE ON | OFF | (<expL>)
 
  
 
==See Also==
 
==See Also==
[[COMPILE]], [[DO]], [[SET DEVELOPMENT]], [[SET PSHARE]]
+
[[COMPILE]], [[DO]]
 
+
  
 
==Description==
 
==Description==
Line 15: Line 12:
  
 
COMPILE should be set OFF when developing applications.  COMPILE should be set ON once the application has been debugged and is running properly.
 
COMPILE should be set OFF when developing applications.  COMPILE should be set ON once the application has been debugged and is running properly.
 
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
set compile on
 
set compile on
do main_prog</code>
+
do myprog</code>
 
+
  
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|COMPILE]]
 
[[Category:Set_Commands|COMPILE]]
[[Category:Environment]]
 
[[Category:Environment Set Commands]]
 

Latest revision as of 05:58, 12 December 2012

Purpose

Enable or disable automatic recompiling of modified source programs

Syntax

SET COMPILE ON | OFF | (<expL>)

See Also

COMPILE, DO

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 myprog