DID YOU KNOW? DTIC has over 3.5 million final reports on DoD funded research, development, test, and evaluation activities available to our registered users. Click
HERE to register or log in.
Accession Number:
ADA010218
Title:
A Portable Compiler for the Language C
Descriptive Note:
Scientific rept.
Corporate Author:
MASSACHUSETTS INST OF TECH CAMBRIDGE PROJECT MAC
Report Date:
1975-05-01
Pagination or Media Count:
77.0
Abstract:
This paper describes the implementation of a compiler for the programming language C. The compiler has been designed to be capable of producing assembly-language code for most register-oriented machines with only minor recoding. Most of the machine-dependent information used in code generation is contained in a set of tables which are constructed automatically from a machine description provided by the implementer. In the machine description, the implementer models the target machine by defining a machine- dependent abstract machine for which the code generator produces intermediate code. The implementer defines the translation from an abstract machine program to a target machine program by providing in the machine description a set of simple macro definitions for the abstract machine instructions. In addition, macro definitions may be provided in the form of C routines where additional processing capability is needed.
Distribution Statement:
APPROVED FOR PUBLIC RELEASE