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
5.4 Basic Compilation Techniques 229
5.4.1 Statement Translation
In this section, we consider the basic job of translating the high-level language
program with little or no optimization. Let’s first consider how to translate an expres-
sion. A large amount of the code in a typical application consists of arithmetic and
logical expressions. Understanding how to compile a single expression,as described
in Example 5.2,is a good first step in understanding the entire compilation process.
Example 5.2
Compiling an arithmetic expression
In the following arithmetic expression,
a*b + 5*(c d)
the variable is written in terms of program variables. In some machines ...
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