tubeshowcase●1,671,863 videos♡ My collection 0
← Learn to Code

Learn to Code43:28

What Every Programmer Should Know about How CPUs Work • Matt Godbolt • GOTO 2024

GOTO Conferences ↗

From the creator

This presentation was recorded at GOTO Chicago 2024. #GOTOcon #GOTOchgo https://gotochgo.com Matt Godbolt - Low-level Latency Geek @MattGodbolt RESOURCES https://bsky.app/profile/matt.godbolt.org https://xania.org https://github.com/mattgodbolt https://www.linkedin.com/in/godbolt https://twitter.com/mattgodbolt https://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 00:00 Intro 00:25 What to get out of this talk 01:13 A modern CPU pipeline 11:47 Branch prediction 21:27 Demo 26:15 Execution 28:56 Demo 34:53 Can the compiler save us? 35:08 Demo 36:46 Memory 37:52 Results 40:11 Top-down analysis 41:12 Perf 42:06 Conclusion 43:11 Outro Download slides and read the full abstract here: https://gotochgo.com/2024/sessions/3281 RECOMMENDED BOOKS Bjarne Stroustrup • Programming: Principles and Practice Using C++ • https://amzn.to/3Tya5G6 Bjarne Stroustrup •

Published 2025-04-16 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code