Assembly language
Last updated
Assembly language is a low-level programming language where each instruction corresponds closely to a single machine code instruction.[1] Each assembly language is specific to a particular computer architecture, such as x86 or ARM.[2] A utility program known as an assembler transforms assembly code into executable machine code.[3]
Key facts and history
The term "assembler" was popularized by Wilkes, Wheeler and Gill in their 1951 book "The Preparation of Programs for an Electronic Digital Computer".[4] Fred Brooks noted that the switch to high-level languages brought at least a fivefold productivity increase, along with gains in reliability and comprehensibility.[5] Today, most programming uses higher-level languages, but small amounts of assembly are still used for performance or direct hardware interaction.[5][6] For example, just under 2% of version 4.9 of the Linux kernel source code is written in assembly.[6]
Assembly language uses mnemonic symbols to represent opcodes, directives, registers, and flags.[7] An assembler translates these mnemonics into their numerical equivalents, including opcodes and control bits.[8] Some assemblers can perform optimizations like jump-sizing or instruction scheduling for CPU pipelines.[8][9] Kathleen and Andrew Donald Booth's 1947 document "Coding for A.R.C." contains the earliest known instance of assembly code, where a language represents machine code instructions.[3]
What the cited sources add
The Dictionary.com definition states that assembly time is the time required for a computer to translate symbolic language into machine-language instructions.[10] The freeCodeCamp course by Carnes notes that over 200 billion devices contain an ARM chip, making ARM assembly language valuable to understand.[11] The same Z80 source describes that a standard way to start a Z80 program is to use an ORG directive followed by a jump to location 100H.[12] The Z80 manual also states that arithmetic in machine code differs from higher-level languages, as multiplication and division require a short program.[12]
According to the Z80 interpreter documentation, the Z80 executes NOP instructions to guarantee that memory refresh occurs properly.[12]
References
- Wikipedia, "Assembly language" (CC BY-SA 4.0), which cites: "High Level Assembler for z/OS & z/VM & z/VSE Language Reference Version 1 Release 6", IBM, 2014; "Assembly: Review", College of Engineering, Ohio State University, 2016; "Assembly Language For Students", CreateSpace Independent Publishing, November 2016; Streib, "Undergraduate Topics in Computer Science", Springer International Publishing, 2020; "Programming the IBM 1401, a self-instructional programmed manual", Prentice-Hall, 1962; "High Level Assembler – Opcodes overview, Assembler Directives", 2010; "High Level Assembler for z/OS en.wikipedia.org
- Wikipedia, "Assembly language" (CC BY-SA 4.0), which cites: Other than meta-assemblers; "How do assembly languages depend on operating systems?", Stack Exchange, 2011-07-28; Austerlitz, "Data Acquisition Techniques Using PCs", Elsevier, 2003, p. 326–360; Carnes, "Learn Assembly Language Programming with ARM", freeCodeCamp.org, 2022-04-27 (we also read that source) en.wikipedia.org
- Wikipedia, "Assembly language" (CC BY-SA 4.0), which cites: Booth, "Coding for A.R.C.", Institute for Advanced Study, Princeton, 1947 (original not read by us) en.wikipedia.org
- Wikipedia, "Assembly language" (CC BY-SA 4.0), which cites: "The preparation of programs for an electronic digital computer", Tomash Publishers, 1951; "History of Computer Languages - The Classical Decade, 1950s", I Programmer, 2017-11-16 (original not read by us) en.wikipedia.org
- Wikipedia, "Assembly language" (CC BY-SA 4.0), which cites: Brooks, "No Silver Bullet—Essence and Accident in Software Engineering", 1986, p. 1069–1076 (original not read by us) en.wikipedia.org
- Wikipedia, "Assembly language" (CC BY-SA 4.0), which cites: "linux kernel mainline 4.9 sloccount.txt", Gist (we also read that source) en.wikipedia.org
- Wikipedia, "Assembly language" (CC BY-SA 4.0), which cites: "What is Assembly Language?", GeeksforGeeks, 2023-10-19 (original not read by us) en.wikipedia.org
- Wikipedia, "Assembly language" (CC BY-SA 4.0), which cites: "Assemblers and Loaders", Ellis Horwood Limited / Simon & Schuster International Group, February 1993, p. 7, 237–238 (we also read that source) en.wikipedia.org
- Wikipedia, "Assembly language" (CC BY-SA 4.0), which cites: Finlayson, "Improving processor efficiency by statically pipelining instructions", 2013, p. 33–44 (original not read by us) en.wikipedia.org
- "ASSEMBLY TIME Definition & Meaning Dictionary.com", www.dictionary.com. facts only, no text reused. dictionary.com
- Carnes, "Learn Assembly Language Programming with ARM", freeCodeCamp.org, 2022-04-27. facts only, no text reused. freecodecamp.org
- "ZINT Z80 Interpreter", Z80 Op Codes for ZINT, 1996. facts only, no text reused. z80.de
Each numbered sentence above was checked against the source it cites before publication. Sentences citing Wikipedia adapt text from the English Wikipedia article Assembly language (contributors), used under CC BY-SA 4.0; this entry is available under the same licence. Other sources were used for facts only; no text or images are copied from them.
More in Computing & Digital
Sources
Compiled from Wikipedia and the sources listed below. Text from Wikipedia is available under CC BY-SA 4.0; this entry is adapted from it.
- Wikipedia: Assembly language (CC BY-SA 4.0).
Spotted an error? Know more?
Reader corrections go straight into our review queue. Suggest an edit · How this site is sourced
