Compile time
This article needs additional citations for verification. (January 2023) |
Program execution |
---|
General concepts |
Types of code |
Compilation strategies |
|
Notable runtimes |
|
Notable compilers & toolchains |
|
In computer science, compile time (or compile-time) describes the time window during which a language's statements are converted into binary instructions for the processor to execute.[1] The term is used as an adjective to describe concepts related to the context of program compilation, as opposed to concepts related to the context of program execution (
Compile time/Early binding vs Run time
The determination of execution model have been set during the compile time stage. Run time- the method of execution and allocation - have been set during the run time and are based on the run time dynamicity.
Overview
Most compilers have at least the following compiler phases (which therefore occur at compile-time):
Programming language definitions usually specify compile time requirements that source code must meet to be successfully compiled. For example, languages may stipulate that the amount of storage required by types and variables can be deduced.
Properties of a program that can be reasoned about at compile time include
Compile-time occurs before
). Although in the case ofThere is a trade-off between compile-time and link-time in that many compile time operations can be deferred to link-time without incurring run-time cost.
See also
- Link time
- Run time (program lifecycle phase)
- Compiling
- Type system
- Dynamic compilation
- Just in time compilation
References
- ^ "A History of Computer Programming Languages". Retrieved 2022-12-25.