World Library  
Flag as Inappropriate
Email this Article

Compiled language

Article Id: WHEBN0000174101
Reproduction Date:

Title: Compiled language  
Author: World Heritage Encyclopedia
Language: English
Subject: Interpreted language, Scripting language, High-level programming language, Go (programming language), Nim (programming language)
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Compiled language

A compiled language is a programming language whose implementations are typically compilers (translators that generate machine code from source code), and not interpreters (step-by-step executors of source code, where no pre-runtime translation takes place).

The term is somewhat vague; in principle any language can be implemented with a compiler or with an interpreter. A combination of both solutions is also common: a compiler can translate the source code into some intermediate form (often called bytecode), which is then passed to an interpreter which executes it.

Advantages and disadvantages

Programs compiled into native code at compile time tend to be quicker than those translated at run time, due to the overhead of the translation process. New technologies such as Just-in-time compilation, and general improvements in the translation process are starting to narrow this gap, though. The mixed solution using bytecode tends to have efficiency somewhere in between.

Low-level programming languages are typically compiled, especially when efficiency is the primary concern, rather than cross-platform support. For low level languages, there are more one-to-one correspondences between the programmed code and the hardware operations performed by machine code, making it easier for programmers to control CPU and memory usage in fine detail.

With some effort it is always possible to write compilers even for traditionally interpreted languages. For example, Common lisp can be compiled to Java bytecode, which is interpreted by the Java virtual machine; C code, which is compiled to native machine code; or compiled directly to native code. Programming languages that support multiple compilation targets give greater control to the developer to choose either execution speed or cross-platform compatibility.

Languages

Some languages that are commonly considered to be compiled:

Tools

See also

External links

  • Compiled Languages at DMOZ
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.