izaberaon Lobsters • Recommends
What Every Programmer Should Know about How CPUs Work
#cpucache#branchprediction#compileroptimization
1M subscribers • 95 videos on Hallway • Conference channel
Intermediate. Assumes working knowledge.
196K views1 year ago2 recommendations
HardwareSystems programmingCPUs and computer architecturePerformance and optimization
Matt Godbolt explains how modern CPU features like caches and branch prediction work, and how compilers optimize code to leverage them.
This presentation was recorded at GOTO Chicago 2024. #GOTOcon #GOTOchgo gotochgo.com Matt Godbolt - Low-level Latency Geek @MattGodbolt RESOURCES bsky.app/profile/matt.godbolt.org xania.org github.com/mattgodbolt linkedin.com/in/godbolt twitter.com/mattgodbolt godbolt.org ABSTRACT When programming these days it’s easy to forget the many layers of abstractions between what you type and what the computer you run your code on is actually doing. In this talk, Matt will describe some of the performance features of modern CPUs and explain how your code is already benefiting from them. We’ll look at real-world server performance, the tooling available to measure their impact, and how compilers are often already doing the right thing for us. By the end of the talk you’ll appreciate the amazing work of chip designers and compiler authors, but you’ll also know how to diagnose when things go awry, and what to do about it. [...] TIMECODES Intro What to get out of this talk A modern CPU pipeline Branch prediction Demo Execution Demo Can the compiler save us? Demo Memory Results Top-down analysis Perf Conclusion Outro Download slides and read the full abstract here: gotochgo.com/2024/sessions/3281 RECOMMENDED BOOKS Bjarne Stroustrup • Programming: Principles and Practice Using C++ • amzn.to/3Tya5G6 Bjarne Stroustrup • Tour of C++ • amzn.to/47w28Hd Bjarne Stroustrup • The C++ Programming Language • amzn.to/4ebJwyU John Horton • Beginning C++ Game Programming • amzn.to/3B8fvBd bsky.app/profile/gotocon.com twitter.com/GOTOcon linkedin.com/company/goto- instagram.com/goto_con facebook.com/GOTOConferences #CPU #CPUPipeline #HowCPUsWork #ChipDesign #x86 #x86ASM #Compiler #BranchPrediction #BloomFilter #SMT #CacheCoherency #Cache #SIMD #kcachegrind #uICA #MattGodbolt CHANNEL MEMBERSHIP BONUS Join this channel to get early access to videos & other perks: youtube.com/channel/UCs_tLP3AiwYKwdUHpltJPuA/join Looking for a unique learning experience? Attend the next GOTO conference near you! Get your ticket at gotopia.tech Sign up for updates and specials at gotopia.tech/newsletter SUBSCRIBE TO OUR CHANNEL - new videos posted almost daily. youtube.com/user/GotoConferences/?sub_confirmation=1What people say. Recommended as a clear and practical guide to understanding CPU architecture and its impact on software performance.
izaberaon Lobsters • Recommends
programming-talkscurated list on GitHubRecommends
Under “Hardware”