Execute instruction explained

In a computer instruction set architecture (ISA), an execute instruction is a machine language instruction which treats data as a machine instruction and executes it.

It can be considered a fourth mode of instruction sequencing after ordinary sequential execution, branching, and interrupting.[1] Since it is an instruction that operates on other instructions like the repeat instruction, it has also been classified as a meta-instruction.[2]

Computer models

Many computer families introduced in the 1950s and 1960s include execute instructions: the IBM 709[1] and IBM 7090 (op code mnemonic:),[3] the IBM 7030 Stretch,[4] [1] the PDP-1/-4/-7/-9/-15,[5] [6] the UNIVAC 1100/2200,[7] the CDC 924,[8] the PDP-6/-10, the IBM System/360,[9] the GE-600/Honeywell 6000,[10] the SDS-9xx,[11] the SDS 92,[12] and the SDS Sigma series .[13]

Fewer 1970s designs include execute instructions: the Nuclear Data 812 minicomputer (1971),[14] the HP 3000 (1972),[15] and the Texas Instruments TI-990 (1975)[16] and its microprocessor version, the TMS9900 (1976) .[17] An execute instruction was proposed for the PDP-11 in 1970,[18] but never implemented for it[19] or its successor, the VAX.[20]

Modern instruction sets do not include execute instructions because they interfere with pipelining, prefetching, and other optimizations.

Semantics

The instruction to be executed, the target instruction, may be in a register or fetched from memory. Some architectures allow the target instruction to itself be an execute instruction; others do not.

The target instruction is executed as if it were in the memory location of the execute instruction. If, for example, it is a subroutine call instruction, execution is transferred to the subroutine, with the return location being the location after the execute instruction. However, some architectures implement variants of the execute instruction which inhibit branches.[1]

The System/360 supports variable-length target instructions. It also supports modifying the target instruction before executing it. The target instruction must start on an even-numbered byte.[9]

The GE-600 series supports execution of two-instruction sequences, which must be doubleword-aligned.[10]

Some architectures support an execute instruction which operates in a different protection and address relocation mode. For example, the ITS PDP-10 paging device supports a privileged-mode 'execute relocated' instruction which allows memory reads, writes, or both to use the user-mode page mappings.[21] Similarly, the KL10 variant of the PDP-10 supports the privileged instruction 'previous context XCT'.[22]

The execute instruction can cause several problems when one execute instruction points to another one and so on:

Similar issues arise with multilevel indirect addressing modes.

Applications

The execute instruction has several applications:[1]

Notes

  1. F.P.. Brooks. Fred Brooks. The execute operations—a fourth mode of instruction sequencing. Communications of the ACM. 3. 3. 168–170. March 1960. 10.1145/367149.367168. 37725430. free.
  2. George E.. Rossman. A Course of Study in Computer Hardware Architecture. IEEE Computer. 8. 12. 44–63. December 1975. 10.1109/C-M.1975.218835. 977792., p. 50
  3. IBM. Reference Manual, IBM 7090 Data Processing System. March 1962. 36.
  4. IBM. Reference Manual, 7030 Data Processing System. August 1961. 50.
  5. Digital Equipment Corporation. Programmed Data Processor-1 Manual. 1961. 14.
  6. Web site: Bob. Supnik. Architectural Evolution in DEC's 18b Computers. 8 (page numbers not shown).
  7. Univac 1107 Central Computer . November 1961. 121.
  8. Control Data 924 Computer Reference Manual . October 1962. 241.
  9. IBM. IBM System/360 Principles of Operation. A22-6821-0. 1964. 65.
  10. General Electric Computer Department. GE-635 System Manual. July 1964. A5.
  11. Scientific Data Systems. SDS 940 Theory of Operation. SDS-98-01-26A. March 1967. 212.
  12. Scientific Data Systems. SDS 92 Computer. June 1965. 26.
  13. Book: Xerox SIGMA 7 Computer: Reference Manual . October 1973 . Xerox Corporation . 90 09 5J; XG46, File No: 1X03 . 0 . 70–71.
  14. Nuclear Data, Inc.. Principles of Programming the ND812 Computer. 1971. 44.
  15. Hewlett-Packard. HP 3000 Computer System: Machine Instruction Set Reference Manual. 1980. 231.
  16. Texas Instruments. 990 Computer Family Systems Handbook. 328.
  17. Texas Instruments. TMS 9900 Microprocessor Data Manual. December 1976. 24.
  18. Web site: van de Goor . Ad . September 21, 1970 . The Execute Instruction . PDP-11/40 Technical Memorandum 18.
  19. PDP11 Processor Handbook: PDP11/04/34a/44/60/60 . 1979 . Digital Equipment Corporation.
  20. VAX MACRO and Instruction Set Reference Manual . April 2001 . . AA-PS6GD-TE.
  21. Web site: J.. Holloway. Hardware Memo 2 - PDP-10 Paging Device. MIT AI Lab. February 20, 1970. 11.
  22. Digital Equipment Corporation. DECsystem-10, DECSYSTEM-20 Processor Reference Manual. AA-H391A-TK, AD-H391A-T1. June 1982. 263.
  23. Book: Gabriel, Richard P.. Richard P. Gabriel. Performance and Evaluation of Lisp Systems. August 1985. 9780262070935. 32. MIT Press .
  24. Kent M.. Pitman. Kent Pitman. The Revised Maclisp Manual, Sunday Morning Edition. https://www.maclisp.info/pitmanual/system.html#PURE. PURE.
  25. David A.. Moon. David A. Moon. Maclisp Reference Manual. Revision 0. April 1974. 181.