Advent of Compiler Optimizations

This is a series Matt Godbolt has been doing this month. Helpful for explaining why compilers choose to emit the instructions that they do.

6 Likes

Also in Video Form: https://www.youtube.com/playlist?list=PL2HVqYf7If8cY4wLk7JUQ2f0JXY_xMQm2

1 Like

Amazing, how does this apply to the zig compiler ?

My guess would be it doesn’t directly apply at least to the self hosted backend yet. Though a lot of it probably would apply to the llvm one.

It seems like it’s mostly food for thought to help people learn different types of optimization and what it’s actually doing.

1 Like