TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Books to read to become a better C programmer on modern hardware

14 pointsby monkey26about 8 years ago
I write mostly C and realize there is a lot I don&#x27;t know about how the underlying hardware deals with the code - cache comes up a lot.<p>What are some references that can help me get a better grasp on topics like this, with respect to modern hardware?

2 comments

CalChrisabout 8 years ago
Hennessy and Patterson, <i>Computer Organization and Design</i> and definitely NOT <i>Computer Architecture</i>. CA is a great book and I&#x27;m partial to the 4th edition but CA is not for you. COAD is for you.<p>There is an ARM edition of COAD but there isn&#x27;t an edition for x86. If you could wait for the next edition of the ARM book, it would be good since the 1st was evidently rushed. Read chapters 1, 5 and 6 but spend a lot of time on chapter 5, <i>Large and Fast: Exploiting Memory Hierarchy</i>.
tjalfiabout 8 years ago
You could do a lot worse than reading all of the references on <a href="https:&#x2F;&#x2F;danluu.com&#x2F;new-cpu-features&#x2F;" rel="nofollow">https:&#x2F;&#x2F;danluu.com&#x2F;new-cpu-features&#x2F;</a>.