• Complain

Randall Hyde - Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level

Here you can read online Randall Hyde - Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2020, publisher: No Starch Press, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level
  • Author:
  • Publisher:
    No Starch Press
  • Genre:
  • Year:
    2020
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Explains how compilers translate high-level language source code (like code written in Python) into low-level machine code (code that the computer can understand) to help readers understand how to produce the best low-level, computer readable machine code.In the beginning, most software was written in assembly, the CPUs low-level language, in order to achieve acceptable performance on relatively slow hardware. Early programmers were sparing in their use of high-level language code, knowing that a high-level language compiler would generate crummy, low-level machine code for their software. Today, however, many programmers write in high-level languages like Python, C/C++/C#, Java, Swift. The result is often sloppy, inefficient code. But you dont need to give up the productivity and portability of high-level languages in order to produce more efficient software.In this second volume of the Write Great Code series, youll learn: How to analyze the output of a compiler to verify that your code does, indeed, generate good machine code The types of machine code statements that compilers typically generate for common control structures, so you can choose the best statements when writing HLL code Just enough 80x86 and PowerPC assembly language to read compiler output How compilers convert various constant and variable objects into machine data, and how to use these objects to write faster and shorter programsNEW TO THIS EDITION, COVERAGE OF: Programming languages like Swift and Java Code generation on modern 64-bit CPUs ARM processors on mobile phones and tablets Stack-based architectures like the Java Virtual Machine Modern language systems like the Microsoft Common Language RuntimeWith an understanding of how compilers work, youll be able to write source code that they can translate into elegant machine code. That understanding starts right here, with Write Great Code, Volume 2: Thinking Low-Level, Writing High-Level.

Randall Hyde: author's other books


Who wrote Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level? Find out the surname, the name of the author of the book and a list of all author's works by series.

Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Contents in Detail PRAISE FOR THE FIRST EDITION OF WRITE GREAT CODE VOLUME 2 - photo 1
Contents in Detail
PRAISE FOR THE FIRST EDITION OF WRITE GREAT CODE, VOLUME 2

Set aside some money and buy this book, or get a friend to buy it and get it from them while still in the store. When you get home, read it TWICE so that you master what is in these pages. Then read it again.

DEVCITY

Write Great Code, Volume 2, exceeds its goal of helping developers pay more attention to application performance when writing applications in high-level languages. This book is a must for any high-level application developer.

FREE SOFTWARE MAGAZINE

As a high-level-language programmer, if you want to know whats really going on with your programs, you need to spend a little time learning assembly languageand you wont find an easier introduction.

DEVX

This is a good book. A very, very good book. Frankly, Im blown away at the quality of writing.

TORONTO RUBY USER GROUP

WRITE GREAT CODE

VOLUME 2
2ND EDITION

Thinking Low-Level, Writing High-Level

by Randall Hyde

Write Great Code Volume 2 2nd Edition Thinking Low-Level Writing High-Level - image 2

San Francisco

WRITE GREAT CODE, Volume 2: Thinking Low-Level, Writing High-Level, 2nd Edition.
Copyright 2020 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.

ISBN-10: 1-718-50038-6
ISBN-13: 978-1-71850-038-9

Publisher: William Pollock
Executive Editor: Barbara Yien
Production Editor: Rachel Monaghan
Developmental Editor: Athabasca Witschi
Project Editor: Dapinder Dosanjh
Cover and Interior Design: Octopod Studios
Technical Reviewer: Anthony Tribelli
Copyeditor: Rachel Monaghan
Compositor: Danielle Foster
Proofreader: James Fraleigh
Illustrator: David Van Ness

For information on distribution, translations, or bulk sales, please contact No Starch Press, Inc. directly:
No Starch Press, Inc.
245 8th Street, San Francisco, CA 94103
phone: 1.415.863.9900;
www.nostarch.com

The Library of Congress issued the following Cataloging-in-Publication Data for the first edition of Volume 1:

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

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.

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.

About the Author

Randall Hyde is the author of The Art of Assembly Language and Write Great Code, Volumes 1, 2, and 3 (all from No Starch Press), as well as Using 6502 Assembly Language and P-Source (Datamost). He is also the coauthor of Microsoft Macro Assembler 6.0 Bible (The Waite Group). Over the past 40 years, Hyde has worked as an embedded software/hardware engineer developing instrumentation for nuclear reactors, traffic control systems, and other consumer electronics devices. He has also taught computer science at California State Polytechnic University, Pomona, and at the University of California, Riverside. His website is www.randallhyde.com/.

About the Technical Reviewer

Tony Tribelli has more than 35 years of experience in software development, including work on embedded device kernels and molecular modeling. He developed video games for 10 years at Blizzard Entertainment. He is currently a software development consultant and privately develops applications utilizing computer vision.

BRIEF CONTENTS
CONTENTS IN DETAIL

1
THINKING LOW-LEVEL, WRITING HIGH-LEVEL

2
SHOULDNT YOU LEARN ASSEMBLY LANGUAGE?

3
80X86 ASSEMBLY FOR THE HLL PROGRAMMER

4
COMPILER OPERATION AND CODE GENERATION

5
TOOLS FOR ANALYZING COMPILER OUTPUT

6
CONSTANTS AND HIGH-LEVEL LANGUAGES

7
VARIABLES IN A HIGH-LEVEL LANGUAGE

8
ARRAY DATA TYPES

9
POINTER DATA TYPES

10
STRING DATA TYPES

11
RECORD, UNION, AND CLASS DATA TYPES

12
ARITHMETIC AND LOGICAL EXPRESSIONS

13
CONTROL STRUCTURES AND PROGRAMMATIC DECISIONS

14
ITERATIVE CONTROL STRUCTURES

15
FUNCTIONS AND PROCEDURES

ACKNOWLEDGMENTS

Many people have read and reread every word, symbol, and punctuation mark in this book in order to produce a better result. Kudos to the following people for their careful work on the second edition: development editor Athabasca Witschi, copyeditor/production editor Rachel Monaghan, and proofreader James Fraleigh.

I would like to take the opportunity to graciously thank Anthony Tribelli, a longtime friend, who went well beyond the call of duty when doing a technical review of this book. He pulled every line of code out of this book (including snippets) and compiled and ran it to make sure it worked properly. His suggestions and opinions throughout the technical review process have dramatically improved the quality of this work.

Of course, I would also like to thank all the countless readers over the years whove emailed suggestions and corrections, many of which have found their way into this second edition.

Thanks to all of you,
Randall Hyde

INTRODUCTION
What do we mean by great code Different programmers will have different - photo 3

What do we mean by great code? Different programmers will have different opinions. Therefore, it is impossible to provide an all-encompassing definition that will satisfy everyone. Here is the definition this book will use:

Great code is software that is written using a consistent and prioritized set of good software characteristics. In particular, great code follows a set of rules that guide the decisions a programmer makes when implementing an algorithm as source code.

However, as I noted in Write Great Code, Volume 1: Understanding the Machine (hereafter, WGC1), there are some attributes of great code that nearly everyone can agree on. Specifically, great code:

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level»

Look at similar books to Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level»

Discussion, reviews of the book Write Great Code, Volume 2, 2nd Edition: Thinking Low-Level, Writing High-Level and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.