Skip to main content

Efficient Programming

  • Chapter
  • 3530 Accesses

Part of the book series: Texts in Computer Science ((TCS))

Abstract

In this chapter we give an overview of common program optimisation techniques. In each case the aim is to retain the program semantics but improve the “quality” somehow. For example, one might re-write the program so it executes more quickly or so that it uses less memory. These techniques are notoriously ad-hoc: our aim is to present a reasoned description, making the implications of each case clear when describing what they achieve. Many of the presented techniques can be achieved by hand or by using some level of automation in the compiler. In the former case it is important to understand the technique so it can be applied; in the latter case the understanding is important so one can reason about what the compiler is doing and why. The overall aim is that a given program gets the most from the underlying hardware: even efficient processors are only as efficient as the programs they execute !

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

Buying options

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 PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer-Verlag London Limited

About this chapter

Cite this chapter

Page, D. (2009). Efficient Programming. In: Practical Introduction to Computer Architecture. Texts in Computer Science. Springer, London. https://doi.org/10.1007/978-1-84882-256-6_13

Download citation

  • DOI: https://doi.org/10.1007/978-1-84882-256-6_13

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-84882-255-9

  • Online ISBN: 978-1-84882-256-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics