Difference between revisions of "Programming language"

From Computer History Wiki
Jump to: navigation, search
m (Typo, avoid redir)
m (See also: +LISP)
 
(4 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
Programming languages are supported in two general ways:
 
Programming languages are supported in two general ways:
  
* [[compiler]]s translate the high-level language statements into a sequence of machine instructions which will perform the specified actions;
+
* [[compiler]]s translate the high-level language statements into a sequence of machine [[instruction]]s which will perform the specified actions;
  
 
* [[interpreter]]s read the [[source code]] and perform the actions indicated therein directly.
 
* [[interpreter]]s read the [[source code]] and perform the actions indicated therein directly.
  
 
It is quite common for a language to have both an interpreter and a compiler, since each has advantages and disadvantages. A program which has been compiled generally runs faster, but interpreters usually provide superior debugging tools.
 
It is quite common for a language to have both an interpreter and a compiler, since each has advantages and disadvantages. A program which has been compiled generally runs faster, but interpreters usually provide superior debugging tools.
 +
 +
==See also==
 +
 +
* [[FORTRAN]]
 +
* [[ALGOL]]
 +
* [[BCPL]]
 +
* [[C programming language|C]]
 +
* [[LISP]]
 +
* [[:Category: Languages]]
 +
 +
[[Category: Software Basics]]

Latest revision as of 17:40, 20 June 2023

A programming language is a human-readable means of giving a computer directions on what computations to perform.

The earliest programming languages were assembly languages, which were simply human-readble forms of the machine's basic object code. Rather than being in binary (expressed in whatever base), they instead uses mnemonics to indicate the instructions.

It soon became apparently that it was desirable to be able to allow people to give these directions in a form which was closer to the high-level tasks the humans were trying to accomplish.

For example, since an important use for early computers was to perform mathematical computations, FORTRAN (one of the earliest computer languages) allowed directions to be given in equations of a form familiar to engineers, etc.

The development of programming languages has been a never-ending process since then, as experience allows better languages, ones with capabilties more suited to the tasks to be accomplished, to be developed.

Compilers and interpreters

Programming languages are supported in two general ways:

  • compilers translate the high-level language statements into a sequence of machine instructions which will perform the specified actions;

It is quite common for a language to have both an interpreter and a compiler, since each has advantages and disadvantages. A program which has been compiled generally runs faster, but interpreters usually provide superior debugging tools.

See also