Rosetta code Page

Rosetta Code



Return to Functional Programming Compare and Contrast 10 Languages by Cloud Monk, Polyglot Programmer, Polyglot, Polyglot Programming, Rosetta

See: ddg>Rosetta Code

* assembler language

Assembly language (or just assembly; often abbreviated asm; sometimes called assembler, although that more properly refers to the program that translates the assembly source into machine code) is a term used for a language which is as close to raw machine code as a language can get. Writing in assembly typically requires strict knowledge of the underlying hardware, which lends itself well to implementing firmware due to size constraint and speed constraints.

Assembly languages use textual "mnemonics" that correspond directly to machine instructions (opcodes). Writing in assembly often gives direct control over the overall layout of the assembled program on disk and in memory. Available instructions and codes are specific to the hardware architecture being programmed on (although there are assemblers which provide an abstracted, non-architecture-specific language; the most notable of which is the GNU Assembler). Assembly programs are typically loaded directly into a computer's memory and run from there. A software emulator can be used for testing purposes, or in the absence of hardware.

High-level assemblers may include many useful abstractions such as:
* macros - inline functions which expand to multiple instructions
* generic instructions that match the most appropriate instruction
* optimizations such as rearranging code
* Object-oriented paradigms such as classes and objects

See also


* >Assembly language| on Wikipedia (includes an in-depth discussion of assembly)
* High-level assembler (a.k.a. macro assembler)
* Compare with Microcode

{{navbar_programming}}

{{navbar_popular}}

{{navbar_footer}}