skip to main content
10.1145/582153.582179acmconferencesArticle/Chapter ViewAbstractPublication PagespoplConference Proceedingsconference-collections
Article
Free Access

Semantics-directed machine architecture

Published:25 January 1982Publication History

ABSTRACT

We show how to analyze the denotational semantics for a programming language to obtain a compiler and a suitable target machine for the language. We do this by rewriting the equations using suitable combinators. The machine operates by simulating the reduction sequences for the combinator terms. The reduction sequences pass through certain standard forms, which become an architecture for the machine, and the combinators become machine instructions. Despite the abstract nature of its development, the machine greatly resembles a conventional one. The method is illustrated by a simple expression language with procedures and input-output.

References

  1. Brosgol, B.M. "TCOLAda and the 'Middle End' of the PQCC Ada Compiler" Proc. ACM-SIGPLAN Symposium on the ADA Programming Languages, SIGPLAN Notices 15, 11 (November, 1980), 101--112. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Clarke, T., P. Gladstone, C. Maclean, and A. Norman. "SKIM- The S, K, I Reduction Machine" Proc. 1980 LISP Conf., 128--135. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Curry, H. B., and Feys, R. Combinatory Logic, Vol. 1. North- Holland, Amsterdam, 1958.Google ScholarGoogle Scholar
  4. Federhen, S. "A Mathematical Semantics for PLANNER" M.S. Thesis, University of Maryland, 1980.Google ScholarGoogle Scholar
  5. Gordon, M.J.C. The Denotational Description of Programming Languages, Springer, Berlin, 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Jones, N. D. (ed.) Semantics-Directed Compiler Generation, Lecture Notes in Comp. Sci., Vol. 94, Springer, Berlin, 1980. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Jones, N. D., and Schmidt, S. "Compiler Generation from Denotational Semantics" in Semantics-Directed Compiler Generation (N.D. Jones, ed), pp. 70--93. Springer Lecture Notes in Computer Science, Vol. 94 (Berlin, 1980). Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Morris, F. L. "Advice on Structuring Compilers and Proving Them Correct" Proc. ACM Symp. on Principles of Programming Languages (Boston, 1973), 144--152. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Mosses, P. D. "Mathematical Semantics and Compiler Generation", D. Phil thesis, Oxford Univ., 1975.Google ScholarGoogle Scholar
  10. Mosses, P. D. "A Constructive Approach to Compiler Correctness", Automata, Languages, and Programming, Seventh Colloquium (1980). Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. O'Donnell, Michael. Computing in Systems Described by Equations, Springer Lecture Notes in Computer Science, Vol. 58, Springer, Berlin, 1977. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Raoult, J. C., and Sethi, R. "On metalanguages for a compiler generator: properties of a notation for combining functions", manuscript, Bell Laboratories, Murray Hill, N.J. (July, 1981).Google ScholarGoogle Scholar
  13. Raskovsky, M., and Collier, P. "From Standard to Implementation Denotational Semantics", in Semantics-Directed Compiler Generation (N. D. Jones, ed.) Springer, Berlin, 1980. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Sethi, R. "Circular Expressions: elimination of static environments" Automata, Languages, and Programming, 8th Colloquium, Acre. Lecture Notes in Computer Science, Vol. 115, Springer, Berlin, 1981. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Stoy, Joseph E. Denotational Semantics: The Scott-Strachey Approach to Programming Language Theory MIT Press, Cambridge, MA, 1977. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Thatcher, J. W., Wagner, E. G., and Wright, J. B. "More on Advice on Structuring Compilers and Proving Them Correct" Theoret. Comp. Sci. 15 (1981), 223--249.Google ScholarGoogle ScholarCross RefCross Ref
  17. Turner, D. A. "A New Implementation Technique for Applicative Languages" Software: Practice and Experience 9 (1979), 31--49.Google ScholarGoogle ScholarCross RefCross Ref
  18. Wand, M. "Deriving Target Code as a Representation of Continuation Semantics," to appear, ACM Trans. on Prog. Lang. and Sys. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Wand, M. "Different Advice on Structuring Compilers and Proving Them Correct" Indiana University Computer Science Department, Technical Report No. 95 (September, 1980).Google ScholarGoogle Scholar
  1. Semantics-directed machine architecture

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      POPL '82: Proceedings of the 9th ACM SIGPLAN-SIGACT symposium on Principles of programming languages
      January 1982
      378 pages
      ISBN:0897910656
      DOI:10.1145/582153

      Copyright © 1982 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 25 January 1982

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

      Acceptance Rates

      POPL '82 Paper Acceptance Rate38of121submissions,31%Overall Acceptance Rate824of4,130submissions,20%

      Upcoming Conference

      POPL '25

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader