Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Compiler
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Compiled vis-Γ -vis interpreted languages == Higher-level programming languages usually appear with a type of [[Translator (computing)|translation]] in mind: either designed as [[compiled language]] or [[interpreted language]]. However, in practice there is rarely anything about a language that ''requires'' it to be exclusively compiled or exclusively interpreted, although it is possible to design languages that rely on re-interpretation at run time. The categorization usually reflects the most popular or widespread implementations of a language β for instance, [[BASIC]] is sometimes called an interpreted language, and C a compiled one, despite the existence of BASIC compilers and C interpreters.<ref>{{Cite web |title=Compiler vs. Interpreter in Programming |url=https://builtin.com/software-engineering-perspectives/compiler-vs-interpreter |access-date=2025-05-25 |website=Built In |language=en}}</ref> Interpretation does not replace compilation completely. It only hides it from the user and makes it gradual. Even though an interpreter can itself be interpreted, a set of directly executed machine instructions is needed somewhere at the bottom of the execution stack (see [[machine language]]). Furthermore, for optimization compilers can contain interpreter functionality, and interpreters may include ahead of time compilation techniques. For example, where an expression can be executed during compilation and the results inserted into the output program, then it prevents it having to be recalculated each time the program runs, which can greatly speed up the final program. Modern trends toward [[just-in-time compilation]] and [[bytecode|bytecode interpretation]] at times blur the traditional categorizations of compilers and interpreters even further. Some language specifications spell out that implementations ''must'' include a compilation facility; for example, [[Common Lisp]]. However, there is nothing inherent in the definition of Common Lisp that stops it from being interpreted. Other languages have features that are very easy to implement in an interpreter, but make writing a compiler much harder; for example, [[APL (programming language)|APL]], [[SNOBOL4]],<ref>{{Cite web |date=2023-10-27 |title=SNOBOL4 Programming Language |url=https://sourceforge.net/projects/snobol4/ |access-date=2025-05-25 |website=SourceForge |language=en}}</ref> and many scripting languages allow programs to construct arbitrary source code at runtime with regular string operations, and then execute that code by passing it to a special [[eval|evaluation function]]. To implement these features in a compiled language, programs must usually be shipped with a [[runtime library]] that includes a version of the compiler itself.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)