Skip to main content

Functions

  • Chapter
  • First Online:
Book cover Introduction to Compiler Design

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

  • 4061 Accesses

Abstract

In Chap. 6 we have shown how to translate the body of a single function. Function calls and returns were left (mostly) untranslated by using the CALL and RETURN instructions in the intermediate code. Nor did we in Chap. 7 show how these instructions should be translated.

Cats are intended to teach us that not everything in nature has a function.

Garrison Keillor (1942–)

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

References

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

    Google Scholar 

  2. Appel, A.W.: Modern Compiler Implementation in ML. Cambridge University Press, Cambridge (1998)

    Google Scholar 

  3. ARM Limited: Procedure call standard for the ARM architecture (2009). http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042d/IHI0042D_aapcs.pdf

  4. Patterson, D.A., Hennessy, J.L.: Computer Organization and Design, the Hardware/Software Interface. Morgan Kaufmann (1998)

    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). Functions. In: Introduction to Compiler Design. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-66966-3_9

Download citation

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

  • 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