Skip to Content
Computers as Components, 2nd Edition
book

Computers as Components, 2nd Edition

by Marilyn Wolf
July 2008
Intermediate to advanced
544 pages
16h 52m
English
Morgan Kaufmann
Content preview from Computers as Components, 2nd Edition
236 CHAPTER 5 Program Design and Analysis
aptr
4 bytes
field1
field2
struct {
int field1;
char field2;
} mystruct;
struct mystruct a, *aptr 5 &a;
FIGURE 5.15
C structure layout and access.
5.5 PROGRAM OPTIMIZATION
Now that we understand something about how programs are created,we can start to
understand how to optimize programs. If we want to write programs in a high-level
language, then we need to understand how to optimize them without rewriting
them in assembly language. This first requires creating the proper source code that
causes the compiler to do what we want. Hopefully, the compiler can optimize our
program by recognizing features of the code and
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

Computers as Components, 3rd Edition

Computers as Components, 3rd Edition

Marilyn Wolf
Computer System Designs: System-on-Chip

Computer System Designs: System-on-Chip

Michael J. Flynn, Wayne Luk
PC Hardware in a Nutshell, 3rd Edition

PC Hardware in a Nutshell, 3rd Edition

Robert Bruce Thompson, Barbara Fritchman Thompson

Publisher Resources

ISBN: 9780123743978