NORD PL

From Computer History Wiki
Revision as of 13:51, 7 August 2017 by Tor (talk | contribs) (A couple of was -> were fixes)
Jump to: navigation, search

NORD PL (NORD Programming Language, or NPL ) is a programming language from Norsk Data. It shipped as a standard component of the operating system SINTRAN III. It could also run freestanding, or under NORD-TSS.

The language was also used to implement SINTRAN III. The NORD PL compiler was also written in NORD PL and some core applications were early on written in NORD PL until PLANC came and linker and other software were rewritten in PLANC.

A quote from the NORD PL Users Guide, July 77, "important advice to the NORD PL programmer":

NORD PL is not a problem oriented high level language like FORTRAN or COBOL. It is a machine oriented medium level language introduced to simplify the assembly coding, i.e., in any statement written the programmer should call attention to the influence oon the register contents!

The NORD PL compiler produced MAC assembly code which then had to be assembled using the MAC assembler. The syntax resembles ALGOL, but it was used like an assembler because all instructions, addressing modes, registers, and memory could be accessed from the language.

Compared to writing assembly (MAC) directly, the intention was to make it easier to write code and to improve error checking and readability. At the same time, using NORD PL produces code about as if assembly was used directly, unlike if a more traditional systems language (e.g. C) is used.

Properties

  • Conditional compiling
  • Declaration statements
  • Arithmetical statements
  • Constant expressions, evaluated at compile time
  • Control statments, including:
GO unconditional branching
IF conditional branching
FOR loop control
WHILE conditional loop control
CALL subroutine call
  • One pass compiler
  • The compiler needs about 6.5Kwords of memory, plus symbol table (5 words per symbol)

I/O must be performed via monitor calls as when writing MAC directly.


References

NDWiki: NORD PL

Wikipedia:Nord Programming Language