Skip to Content
Write Great Code, Volume 1, 2nd Edition
book

Write Great Code, Volume 1, 2nd Edition

by Randall Hyde
August 2020
Intermediate to advanced
472 pages
13h 37m
English
No Starch Press
Content preview from Write Great Code, Volume 1, 2nd Edition

10INSTRUCTION SET ARCHITECTURE

Image

This chapter discusses the implementation of a CPU’s instruction set. Although the choice of a given instruction set is usually beyond a software engineer’s control, understanding the decisions a hardware design engineer has to make when designing a CPU’s instruction set can definitely help you write better code.

CPU instruction sets contain several tradeoffs based on assumptions that computer architects make about the way software engineers write code. If the machine instructions you choose match those assumptions, your code will probably run faster and require fewer machine resources. Conversely, if your code violates ...

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

Write Great Code, Volume 2, 2nd Edition

Write Great Code, Volume 2, 2nd Edition

Randall Hyde

Publisher Resources

ISBN: 9781098125646