write_great_code_vol_1.pdf

(7216 KB) Pobierz
WRITE GRE AT CODE
UNDERSTANDING
THE MACHINE
V O L U M E
1 :
Randall Hyde
WRITE GREAT
CODE
Vol ume I:
Und erstand in g th e Mach ine
b y R an d a l l H y de
San Francisco
WRITE GREAT CODE.
Copyright © 2004 by Randall Hyde.
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior
written permission of the copyright owner and the publisher.
Printed on recycled paper in the United States of America
1 2 3 4 5 6 7 8 9 10 – 07 06 05 04
No Starch Press and the No Starch Press logo are registered trademarks of No Starch Press, Inc. Other product and
company names mentioned herein may be the trademarks of their respective owners. Rather than use a trademark
symbol with every occurrence of a trademarked name, we are using the names only in an editorial fashion and to the
benefit of the trademark owner, with no intention of infringement of the trademark.
Publisher: William Pollock
Managing Editor: Karol Jurado
Cover and Interior Design: Octopod Studios
Developmental Editor: Hillel Heinstein
Technical Reviewer: Mark de Wever
Copyeditor: Andy Carroll
Compositor: Riley Hoffman
Proofreader: Stephanie Provines
For information on book distributors or translations, please contact No Starch Press, Inc. directly:
No Starch Press, Inc.
555 De Haro Street, Suite 250, San Francisco, CA 94107
phone: 415-863-9900; fax: 415-863-9950; info@nostarch.com; http://www.nostarch.com
The information in this book is distributed on an “As Is” basis, without warranty. While every precaution has been
taken in the preparation of this work, neither the author nor No Starch Press, Inc. shall have any liability to any
person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the
information contained in it.
Librar y of Congress Cataloguing-in-Publication Data
Hyde, Randall.
Write great code : understanding the machine / Randall Hyde.
p. cm.
ISBN 1-59327-003-8
1. Computer programming. 2. Computer architecture. I. Title.
QA76.6.H94 2004
005.1--dc22
2003017502
BRIEF CONTENTS
Chapter 1
Chapter 6
What You Need to Know to
Write Great Code
1
Chapter 2
Memory Organization
and Access
133
Chapter 7
Numeric Representation
9
Chapter 3
Composite Data Types
and Memory Objects
161
Chapter 8
Binary Arithmetic
and Bit Operations
39
Chapter 4
Boolean Logic
and Digital Design
191
Chapter 9
Floating-Point
Representation
65
Chapter 5
CPU Architecture
225
Chapter 10
Character Representation
103
Instruction Set Architecture
259
Zgłoś jeśli naruszono regulamin