[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
article
Free access

Why a two pass front end?

Published: 02 January 1991 Publication History

Abstract

Compilers for some programming languages are traditionally considered to be best implemented with a front end (lexical analysis, semantic analysis and intermediate code generation phases) that makes only one pass over the source program. A FORTRAN compiler was converted from such a design to one that uses two passes for the benefit of obtaining a front end that is easier to understand and maintain. The details of which language features motivated this conversion are presented. Performance results are also presented that show there was only a 4% increase in compile time after the conversion.

References

[1]
1. Alfred V. Aho, Ravi Sethi, Jeffery D. Ullman, Compilers Principles, Techniques, and Tools, Addison-Wesley, 1986.
[2]
2. P.M. Lewis II, D.J. Rosenkrantz, R.E. Stearns, The Systems Programming Series: Compiler Design Theory, Addison-Wesley, 1978.
[3]
3. Juerg Guthknecht, 'One Pass Compilation at its Limits: A Modula-2 Compiler for the Xerox Dragon Computer', Software - Practice & Experience, Vol. 17, No. 7, July 87, pp. 469-484.
[4]
4. Urs Ammann, 'On Code Generation in a PASCAL Compiler', Software - Practice & Experience, Vol. 7, No. 3, March 77, pp. 391-423.
[5]
5. T.P. Baker, 'A Single-Pass Syntax-Directed Front End for Ada', Sigplan Notices, Vol. 17, No. 6, June 82, pp. 318-326.
[6]
6. Kathleen Jensen, Niklaus Wirth, Pascal User Manual and Report, Springer-Verlag, 1974.

Cited By

View all
  • (2000)Structuring a Compiler with Active ObjectsModular Programming Languages10.1007/10722581_20(250-262)Online publication date: 2000

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM SIGPLAN Notices
ACM SIGPLAN Notices  Volume 26, Issue 3
March 1991
86 pages
ISSN:0362-1340
EISSN:1558-1160
DOI:10.1145/122167
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 02 January 1991
Published in SIGPLAN Volume 26, Issue 3

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)92
  • Downloads (Last 6 weeks)7
Reflects downloads up to 14 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2000)Structuring a Compiler with Active ObjectsModular Programming Languages10.1007/10722581_20(250-262)Online publication date: 2000

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media