RTL/2
RTL/2 (Real-Time Language) is a discontinued high-level programming language for use in real-time computing, developed at Imperial Chemical Industries, Ltd.[src] (ICI), by J.G.P.[src] Barnes.[src] It was originally used internally in ICI but was distributed by SPL International in 1974.[src] It was based on concepts from ALGOL 68, and intended to be small and simple.[src] RTL/2 was standardised in 1980 by the British Standards Institution.[src]
RTL/2 (Real-Time Language) is a discontinued high-level programming language for use in real-time computing, developed at Imperial Chemical Industries, Ltd.[src] (ICI), by J.G.P.[src] Barnes.[src] It was originally used internally in ICI but was distributed by SPL International in 1974.[src] It was based on concepts from ALGOL 68, and intended to be small and simple.[src] RTL/2 was standardised in 1980 by the British Standards Institution.[src] ==Language overview== The data types in RTL/2 were strongly typed, with separate compiling.[src] The compilation units contained one or more items named bricks, i.e.: Procedure bricks Data bricks Stack bricks A procedure brick was a procedure, which may or may not return a (scalar) value, have (scalar) parameters, or have local (scalar) variables.[src] The entry mechanism and implementation of local variables was reentrant.[src] Non-scalar data could only be accessed via reference (so-called REF variables were considered scalar).[src] A data brick was a named static collection of scalars, arrays and records.[src] There was no heap or garbage collection, so programmers had to implement memory management manually.[src] A stack brick was an area of storage reserved for running all the procedures of a single process and contained the call stack, local variables and other housekeeping items.[src] The extent to which stack bricks were used varied depending on the host environment in which RTL/2 programs ran.[src] Access to the host environment of an RTL/2 program was provided via special procedure and data bricks called SVC procedures and SVC data.[src] These were accessible in RTL/2 but implemented in some other language in the host environment.[src] TITLE Hello World; LET NL=10; EXT PROC(REF ARRAY BYTE) TWRT; ENT PROC RRJOB() INT; TWRT("Hello World#NL#"); RETURN(1); ENDPROC; CODE 6,0; JMP CODE_ENT ; This code insert can be set to a fixed length as it jumps to a new psect.[src] this method is especially useful on systems such as VMS where the length of instructions is variable .SAVE_PSECT ; Save current program section .PSECT ASMB_CODE,EXE,NOWRT,LONG CODE_ENT: MOVL *PARAM1(AP),*COUNTER/MYDATA JMP CODE_EX .RESTORE_PSECT CODE_EX: RTL This code insert moves the value of a variable passed into the RTL/2 procedure into a variable named COUNTER in a data brick named MYDATA .[src] == References==[src]
25 sentences · 25 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"RTL/2." encyclopegia.org, 2022, https://encyclopegia.org/wiki/rtl-2. Accessed 25 November 2026.
Chicago
"RTL/2." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/rtl-2.
APA
encyclopegia.org. (2022). RTL/2. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/rtl-2
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON