fbpx
Wikipedia

Compile time

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 (runtime). For example, compile-time requirements are programming language requirements that must be met by source code before compilation and compile-time properties are properties of the program that can be reasoned about during compilation. The actual length of time it takes to compile a program is usually referred to as compilation time.

Compile time/Early binding vs Run time edit

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 edit

Most compilers have at least the following compiler phases (which therefore occur at compile-time): syntax analysis, semantic analysis, and code generation. During optimization phases, constant expressions in the source code can also be evaluated at compile-time using compile-time execution, which reduces the constant expressions to a single value. This is not necessary for correctness, but improves program performance during runtime.

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 range-checks (e.g., proving that an array index will not exceed the array bounds), deadlock freedom in concurrent languages, or timings (e.g., proving that a sequence of code takes no more than an allocated amount of time).

Compile-time occurs before link time (when the output of one or more compiled files are joined) and runtime (when a program is executed). Although in the case of dynamic compilation, the final transformations into machine language happen at runtime.

There 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 edit

References edit

  1. ^ "A History of Computer Programming Languages". Retrieved 2022-12-25.


compile, time, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, jstor, january, 202. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Compile time news newspapers books scholar JSTOR January 2023 Learn how and when to remove this template message 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 runtime For example compile time requirements are programming language requirements that must be met by source code before compilation and compile time properties are properties of the program that can be reasoned about during compilation The actual length of time it takes to compile a program is usually referred to as compilation time Contents 1 Compile time Early binding vs Run time 2 Overview 3 See also 4 ReferencesCompile time Early binding vs Run time editThe 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 editMost compilers have at least the following compiler phases which therefore occur at compile time syntax analysis semantic analysis and code generation During optimization phases constant expressions in the source code can also be evaluated at compile time using compile time execution which reduces the constant expressions to a single value This is not necessary for correctness but improves program performance during runtime 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 range checks e g proving that an array index will not exceed the array bounds deadlock freedom in concurrent languages or timings e g proving that a sequence of code takes no more than an allocated amount of time Compile time occurs before link time when the output of one or more compiled files are joined and runtime when a program is executed Although in the case of dynamic compilation the final transformations into machine language happen at runtime There 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 editLink time Run time program lifecycle phase Compiling Type system Dynamic compilation Just in time compilationReferences edit A History of Computer Programming Languages Retrieved 2022 12 25 nbsp This computer science article is a stub You can help Wikipedia by expanding it vte Retrieved from https en wikipedia org w index php title Compile time amp oldid 1176739825, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.