Skip to main content

Intermediate-Code Generation

  • Chapter
  • First Online:
Introduction to Compiler Design

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 4117 Accesses

Abstract

The final goal of a compiler is to get programs written in a high-level language to run on a computer. This means that, eventually, the program will have to be expressed as machine code that can run on the computer. This does not mean that we need to translate directly from the high-level abstract syntax to machine code. Many compilers use a medium-level language as a stepping-stone between the high-level language and the very low-level machine code. Such stepping-stone languages are called intermediate code .

The art of free society consists first in the maintenance of the symbolic code; and secondly in fearlessness of revision, to secure that the code serves those purposes which satisfy an enlightened reason.

Alfred North Whitehead (1869–1947)

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Note that the coordinate system is rotated 90° clockwise compared to mathematical tradition.

References

  1. Aït-Kaci, H.: Warren’s Abstract Machine - A Tutorial Reconstruction. MIT Press, Cambridge (1991)

    Google Scholar 

  2. Appel, A.W.: Compiling with Continuations. Cambridge University Press, Cambridge (1992)

    Google Scholar 

  3. Jones, S.L.P., Lester, D.: Implementing Functional Languages - A Tutorial. Prentice Hall, Reading (1992)

    Google Scholar 

  4. Lattner, C.: LLVM language reference manual (2011). http://llvm.org/docs/LangRef.html

  5. Lindholm, T., Yellin, F.: The Java Virtual Machine Specification, 2nd edn. Addison-Wesley, Reading (1999)

    Google Scholar 

  6. Muchnick, S.S.: Advanced Compiler Design and Implementation. Morgan Kaufmann, San Francisco (1997)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Torben Ægidius Mogensen .

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Mogensen, T. (2017). Intermediate-Code Generation. In: Introduction to Compiler Design. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-66966-3_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-66966-3_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-66965-6

  • Online ISBN: 978-3-319-66966-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics