Skip to Content
Embedded Systems and Computer Architecture
book

Embedded Systems and Computer Architecture

by Graham R Wilson
December 2001
Intermediate to advanced
320 pages
7h 37m
English
Newnes
Content preview from Embedded Systems and Computer Architecture
7

Program structures

In Chapter 6 we saw the variety of instructions that are available to a programmer of the G80. In this chapter we see how these instructions, and the data on which they operate, are best organized into various structures. Programs are written in order to process data; indeed, what is commonly referred to as a ‘program’ is an algorithm that processes data. Thus we have that ‘Program = Data + Algorithm for processing the Data’. We use program control structures to define the algorithm; we use data structures to store data in a way that helps us devise simple algorithms.

In this chapter, we look first at how instructions may be organized into the three basic program control structures sequence, while, and if/else, and then ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Embedded Systems Architecture - Second Edition

Embedded Systems Architecture - Second Edition

Daniele Lacamera

Publisher Resources

ISBN: 9780750650649