Difference between revisions of "Compile time"

From Free Pascal wiki
Jump to navigationJump to search
m
Line 4: Line 4:
  
 
Information available at compile time is usually more efficient for the program as [[Initialization|initialization]] of constants and value-defined [[Var|variables]] can be done once, when the program is compiled, as opposed to doing so at run time each time the program is started.
 
Information available at compile time is usually more efficient for the program as [[Initialization|initialization]] of constants and value-defined [[Var|variables]] can be done once, when the program is compiled, as opposed to doing so at run time each time the program is started.
 +
 +
[[Category:Pascal]]

Revision as of 21:32, 27 April 2013

Compile time refers to the period when a Pascal program is being compiled, and is usually used to refer to information known by the compiler which it can use in compiling the program. Examples of such information available at compile time include compiler switches, values of identifiers defined as const, quoted strings, and the actual text of the program.

Information which is not available until the program is being executed is referred to as being known at run time.

Information available at compile time is usually more efficient for the program as initialization of constants and value-defined variables can be done once, when the program is compiled, as opposed to doing so at run time each time the program is started.