ABSTRACT
Efficient coding for subroutine interfaces often implies, especially for system programmers, the passing of arguments in hardware registers, rather than on a system stack. This is a problem in an extendible compiler that allocates registers for itself and also allows programmers to use hardware registers (as well as memory locations) as variables. There is the added problem of standardizing the subroutine interface to reduce the possibility of using the subroutine incorrectly. This abstract discusses a solution to these problems.
The compiler for which the solution is intended is ETC[1], an extendible, macro-based, infix compiler designed to facilitate the production of very efficient code. Statements in the language may be freely mixed with machine operations, pseudo-operations, and macro calls. The extended language resembles FORTRAN. The base language consists of an assembler with a powerful macro facility [2] and a set of primitives, including operation, function and attribute definition, and limited register allocation.
- 1.B. N. Dickman ETC - An extendible, macro-based compiler Proceedings of the Spring Joint Computer Conference, AFIPS Press, Montvalle, New Jersey, Volume 38, pp 529-38, 1971.Google Scholar
- 2.M. E. Barton The macro assembler, SWAP Proceedings of the Fall Joint Computer Conference, AFIPS Press, Montvalle, New Jersey, Volume 37, pp 1-8, 1970.Google Scholar
- 3.B. N. Dickman Subroutine interface primitives for ETC BTL internal memorandum, 1970.Google Scholar
Index Terms
- Subroutine interface primitives for ETC
Recommendations
Subroutine interface primitives for ETC
Proceedings of the international symposium on Extensible languagesEfficient coding for subroutine interfaces often implies, especially for system programmers, the passing of arguments in hardware registers, rather than on a system stack. This is a problem in an extendible compiler that allocates registers for itself ...
ETC: an extendible macro-based compiler
AFIPS '71 (Spring): Proceedings of the May 18-20, 1971, spring joint computer conferenceETC (ExTendible Compiler) is a high level language compiler that allows the programmer to produce very efficient code when necessary, getting as close to the machine as he desires, and yet to write in machine independent statements when the production ...
Interface Compilation: Steps Toward Compiling Program Interfaces as Languages
Interfaces the collection of procedures and data structures that define a library, a subsystem, a module are syntactically poor programming languages. They have state (defined both by the interface's data structures and internally), operations on this ...
Comments