请输入您要查询的百科知识:

 

词条 Nord Programming Language
释义 {{Unreferenced|date=December 2006}}

Nord Programming Language, commonly abbreviated NPL, was a programming language by the Norwegian minicomputer manufacturer Norsk Data. It shipped as a standard component of the operating system SINTRAN III.

The language was also used to implement SINTRAN III. I.e. the core and file system of SINTRAN III was written in NPL. The NPL compiler was also written in NPL and some core applications was early on written in NPL until PLANC came and linker and other software was rewritten in PLANC.

The NPL compiler was also special in that it did not produce object code as most compilers do. Instead it produced assembler code which then had to be assembled using the Norsk Data Assembler.

The registers of the CPU were available in NPL as predefined variables. Thus you could write:

and the compiler would generate:

 COPY SX DA RADD ST DA

Functions could be declared with multiple entry points:

 FUNC FUN1, FUN2  FUN1: T := 1 FUN2:  code here  END

FUN1 could be called to set T to 1 before falling into FUN2 or T could be set to something else and call FUN2. If T register specified which file handle to write to then either FUN1 could be called to always output to terminal or T could be specified to handle a file itself in T and call FUN2 to output to that file.

{{Norsk Data}}

2 : Procedural programming languages|Norsk Data software

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/25 20:22:50