Compile time: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Compile time
| Old | New | Line | |
|---|---|---|---|
| 1 | + | **Compile time** is the duration it takes to compile a module. [[Pascal]] modules can be be compiled in a very short time. A [[Hello, World]] program can be compiled in less than half a second. The [[FPC]] reports the time it took if the command line option `-vi` (show general information) is set. | |
| 2 | + | ||
| 3 | + | **Compile-time** refers to the period when a Pascal module is being compiled. Thus “Compile-time information” refers to information known by the [[Compiler|compiler]] during compilation. Examples of such information available at compile-time include [[compiler switch|compiler switches]], values of [[Identifier|identifiers]] defined as [[Const|const]], quoted [[String|strings]], and the actual text of the program. | |
| 4 | + | ||
| 5 | + | Information which is not available until the [[Executable program|program]] is being executed is referred to as being known at [[runtime|run-time]]. | |
| 6 | + | ||
| 7 | + | Information available at compile-time is usually more efficient for the program as [[Initialization|initialization]] of [[Constant|constants]] and value-defined [[Var|variables]] can be done once, when the program is compiled, as opposed to doing so at runtime each time the program is started. | |
| 8 | + | ||
| 9 | + | ## see also | |
| 10 | + | ||
| 11 | + | - [[compile-time error]] | |
| 12 | + | - [[compile time expressions|compile-time expressions]] | |
| 13 | + | - [[compile time variables|compile-time variables]] | |
| 14 | + | ||
| 15 | + | --- | |
| 16 | + | *From the Free Pascal wiki, page "Compile time", as it stood on 2020-06-23 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
