文档介绍:Get better results
from your
source code
WRITE GRE AT CODE AT GRE WRITE
WRITE GRE AT CODE AT GRE WRITE
L E V E L - H G I H G N I T I R W , L E V E L - W O L G N I K N I H T : 2 E M U L O V WWRR I I T T E E GG R R E E AT AT
PRAISE FOR WRITE GREAT CODE, VOLUME 1: UNDERSTANDING THE MACHINE • The types of machine code statements pilers
“If you are programming without benefit of formal train- typically generate mon control structures, so you
ing, or if you lack the aegis of a mentor, Randall Hyde’s can choose the best statements when writing HLL code
Write Great Code series should rouse your interest.”
• Just enough x86 and PowerPC assembly language to
—
piler output
No prior knowledge of • pilers convert various constant and
assembly language required! variable objects into machine data, and how to use
these objects to write faster and shorter programs
In the beginning, most software was written in assembly,
the CPU’s low-level language, in order to achieve CODE
You don’t need to give up the productivity and CV O L U MODE E 2 : T H I N K I N G L O W - L E V E L ,
acceptable performance on relatively slow hardware. portability of high-level languages in order to produce
Early programmers were sparing in their use of high-level more efficient software. With an understanding of how W R I T I N G H I G H - L E V E L
language code, knowing that a high-level - compilers work, you’ll be able to write source code
piler would generate crummy low-level machine code for that they can translate into elegant machine code. That
their software. Today, however, many programmers write understanding starts right here, with Write Great Code:
in high-level languages like C, C++, Pascal, Java, or Thinking Low-Level, Writing High-Level.
BASIC. The result is often sloppy, inefficient code. Write
Great Code, Volume 2 helps you avoid mon About the author
problem and learn to write well-structured code.
Randall Hyde is the author of The Art of As