Skip to content
0:00 / 0:00

#compilerexplorer#compileroptimization#llvm

C++Now 2018: Matt Godbolt “What Else Has My Compiler Done For Me Lately?”

CppNow

39K subscribers • 42 videos on Hallway • Conference channel

YouTube
  • Recommended by 3 people: 3 on Hacker News.
  • Presented by Matt Godbolt, creator of Compiler Explorer

Advanced. Deep dive for people who know the field.

10K views8 years ago3 recommendations

Systems programmingProgramming languagesCompilers and interpretersPerformance and optimizationC++

Matt Godbolt explores surprising and advanced optimizations performed by modern compilers, including loop transformations and instruction selection.

cppnow.org — Presentation Slides, PDFs, Source Code and other presenter materials are available at: cppnow.org/history/2018/talks/ — We've given Matt four day's notice (a scheduled speaker had to cancel) to tell us what his compiler has done for him since his CppCon Keynote. Come and see the latest. — Matt Godbolt Compiler Explorer Senior Software Engineer Matt Godbolt is the creator of the Compiler Explorer website. He is passionate about writing efficient code. He has previously worked at a trading firm, on mobile apps at Google, run his own C++ tools company and spent more than a decade making console games. When he's not hacking on Compiler Explorer, Matt enjoys writing emulators for old 8-bit computer hardware. — Videos Filmed & Edited by Bash Films: BashFilms.com --- *--* ---

Why it's here

3 people recommend this

What people say. Highly recommended for its mind-blowing demonstrations of modern compiler optimizations and assembly generation.

snailmailmanon Hacker News • Recommends

On “Popcount CPU instruction”

I highly recommend Matt Godbolt's talk "What has my compiler done for me lately?"0 and its follow-up1. Both are great presentations going into details on some of the crazy optimizations compilers will do. As someone who knows very little about the inner workings of compilers my mind was blown when I saw some them. 0 link 1 link to this video

drejon Hacker News • Recommends

On “Rust: Zero-Cost Abstraction in Action”

This is not Rust specific, this is a compiler thing, both LLVM and GCC can detect sums and generate closed form formulas instead. There are other fun algorithm detections - e.g. if you try to do bitcounts yourself, LLVM will use popcnt instead. Compilers are awesome, check out Matt Godbolt's talk on this very topic: link to this video

manaskarekaron Hacker News • Recommends

On “I translated a simple C program to x86_64 and it was slower”

Tangent, but this reminds me of this great talk by Matt Godbolt from CppCon 2017: “What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid” link . And the follow up link to this video .

foxrob92on Hacker News • Mentions

On “Compiler Explorer”

Doesn't look like it works any more. In any case, Matt Godbolt has spoken a bit about the architecture of Compiler Explorer. Seems like he's given some thought to security. link link to this video