What Is A Primitive Language
In calculating, language primitives [ citation needed ] are the simplest elements bachelor in a programming language. A primitive is the smallest 'unit of processing' available to a developer of a given auto, or can exist an diminutive element of an expression in a linguistic communication.
Primitives are units with a pregnant, i.e., a semantic value in the language. Thus they are dissimilar from tokens in a parser, which are the minimal elements of syntax.
Car level primitives [edit]
A car instruction, unremarkably generated by an assembler plan, is often considered the smallest unit of processing although this is not ever the case. It typically performs what is perceived to be one operation such as copying a byte or cord of bytes from one computer retentivity location to another or adding one processor register to another.
Microcode primitives [edit]
Many of today's computers, withal, actually embody an even lower unit of measurement of processing known as microcode which interprets the machine code and it is then that the microcode instructions would exist the genuine primitives. These instructions would typically be bachelor for modification only by the hardware vendor's programmers.
High level language primitives [edit]
A high-level programming language (HLL) program is composed of discrete statements and primitive information types that may besides be perceived to perform a single operation or stand for a unmarried data particular, but at a higher semantic level than those provided by the automobile. Copying a information detail from one location to another may actually involve many machine instructions that, for instance,
- summate the address of both operands in memory, based on their positions within a information construction,
- convert from ane data blazon to another
before finally
- performing the final store performance to the target destination.
Some HLL statements, specially those involving loops, can generate thousands or even millions of primitives in a low-level programming language (LLL), which contain the 18-carat instruction path length the processor has to execute at the everyman level. This perception has been referred to as the brainchild penalty.[i] [two] [iii]
Interpreted language primitives [edit]
An interpreted language argument has similarities to the HLL primitives, merely with a farther added layer. Before the statement tin be executed in a fashion very similar to an HLL statement: it must first be processed past an interpreter, a process that may involve many primitives in the target automobile language.
Fourth and 5th-generation language primitives [edit]
Quaternary-generation programming languages (4GL) and fifth-generation programming languages (5GL) do non have a elementary one-to-many correspondence from high-to-low level primitives. There are some elements of interpreted language primitives embodied in 4GL and 5GL specifications, just the approach to the original problem is less a procedural language construct and are more oriented toward trouble solving and systems applied science.
See also [edit]
- Primitive type
- Hardware-software codesign
References [edit]
- ^ Surana P (2006). "Meta-Compilation of Language Abstractions" (PDF). Archived (PDF) from the original on 2015-02-17. Retrieved 2008-03-17 .
- ^ Kuketayev. "The Data Brainchild Penalisation (DAP) Benchmark for Small Objects in Java". Archived from the original on 2009-01-11. Retrieved 2008-03-17 .
- ^ Chatzigeorgiou; Stephanides (2002). "Evaluating Performance and Power Of Object-Oriented Vs. Procedural Programming Languages". In Blieberger; Strohmeier (eds.). Proceedings - 7th International Conference on Reliable Software Technologies - Ada-Europe'2002. Springer. p. 367. ISBN978-3-540-43784-0.
What Is A Primitive Language,
Source: https://en.wikipedia.org/wiki/Language_primitive
Posted by: scottwomell1958.blogspot.com

0 Response to "What Is A Primitive Language"
Post a Comment