encyclopegia.org

Language primitive

DRAKON In computing, language primitives are the simplest elements available in a programming language.[src] A primitive is the smallest 'unit of processing' available to a programmer of a given machine, or can be an atomic element of an expression in a language.[src] Primitives are units with a meaning, i.e., a semantic value in the language.[src] Thus they are different from tokens in a parser, which are the minimal elements of syntax.[src]

DRAKON]] In computing, language primitives are the simplest elements available in a programming language.[src] A primitive is the smallest 'unit of processing' available to a programmer of a given machine, or can be an atomic element of an expression in a language.[src] Primitives are units with a meaning, i.e., a semantic value in the language.[src] Thus they are different from tokens in a parser, which are the minimal elements of syntax.[src] ==Types of primitives== ===Machine-level primitives=== A machine instruction, usually generated by an assembler program, is often considered the smallest unit of processing although this is not always the case.[src] It typically performs what is perceived to be one operation such as copying a byte or string of bytes from one computer memory location to another or adding one processor register to another.[src] ===Microcode primitives=== Many of today's computers, however, actually embody an even lower unit of processing known as microcode which interprets the machine code and it is then that the microcode instructions would be the genuine primitives.[src] These instructions would typically be available for modification only by the hardware vendor's programmers.[src] ===High-level language primitives=== A high-level programming language (HLL) program is composed of discrete statements and primitive data types that may also be perceived to perform a single operation or represent a single data item, but at a higher semantic level than those provided by the machine.[src] Copying a data item from one location to another may actually involve many machine instructions that, for instance, calculate the address of both operands in memory, based on their positions within a data structure, convert from one data type to another before finally performing the final store operation to the target destination.[src] Some HLL statements, particularly those involving loops, can generate thousands or even millions of primitives in a low-level programming language (LLL), which comprise the genuine instruction path length the processor has to execute at the lowest level.[src] This perception has been referred to as the abstraction penalty.[src] ===Interpreted language primitives=== An interpreted language statement has similarities to the HLL primitives, but with a further added layer.[src] Before the statement can be executed in a manner very similar to an HLL statement: it must first be processed by an interpreter, a process that may involve many primitives in the target machine language.[src] ===Fourth and fifth-generation language primitives=== Fourth-generation programming languages (4GL) and fifth-generation programming languages (5GL) do not have a simple one-to-many correspondence from high-to-low level primitives.[src] There are some elements of interpreted language primitives embodied in 4GL and 5GL specifications, but the approach to the original problem is less a procedural language construct and are more oriented toward problem solving and systems engineering.[src] ==See also== ==References==[src]

21 sentences · 21 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Language primitive." encyclopegia.org, 2025, https://encyclopegia.org/wiki/language-primitive. Accessed 25 November 2026.

Chicago

"Language primitive." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/language-primitive.

APA

encyclopegia.org. (2025). Language primitive. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/language-primitive

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

official language

stub · references available

pan-Slavic language

stub · references available

Hawaiʻi Sign Language

stub · references available

Taiwanese Sign Language

stub · references available

International Mother Language Day

stub · references available

polysynthetic language

stub · references available

Category:Films by country or language

stub · references available

Dutch Language Union

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1280400081 · 0.5 · snapshot enwiki-001280400081

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.