PL360 is a programming language designed by Niklaus Wirth and written by Niklaus Wirth, Joseph W. Wells, Jr., and Edwin Satterthwaite, Jr. for the IBM System/360 computer. documentation of PL360 first appeared in 1968.
PL/360 is a one pass compiler with a syntax similar to Algol that provides facilities for specifying exact machine language instructions and registers similar to assembly language, but also provides features commonly found in high-level languages, such as complex arithmetic expressions and control structures. Wirth used PL360 to create Algol W.
Data types were::p.2-1
- Byte or character — a single byte.
- Short integer — 2 bytes, interpreted as an integer in two's complement binary notation.
- Integer or logical — 4 bytes, interpreted as an integer in two's complement binary notation.
- Real — 4 bytes, interpreted as a base-16 short floating-point number.
- Long real — 8 bytes, interpreted as a base-16 long floating-point number.
Registers could contain integer, real, or long real.
Individual System/360 instructions could be generated inline using the PL360 "function statement" that defined an instruction by format and operation code. Function arguments were assigned sequentially to fields in the instruction. Examples are:
||note nested reference|
R0, R1, and R2, and FLAG are predeclared names.
BEGIN INTEGER BUCKET; IF FLAG THEN BEGIN BUCKET := R0; R0 := R1; R1 := R2; R2 := BUCKET; END ELSE BEGIN BUCKET := R2; R2 := R1; R1 := R0; R0 := BUCKET; END RESET(FLAG); END
- Wirth, Niklaus (January 1968). "PL360, a Programming Language for the 360 Computers". Journal of the ACM (JACM 15 (1): 34–74. doi:10.1145/321439.321442. Retrieved October 8, 2012.
- Stanford University. "P L 3 6 0 REFERENCE MANUAL". Retrieved October 21, 2012.
|This programming language–related article is a stub. You can help Wikipedia by expanding it.|