More thanks to Matt Godbolt for today's episode of #AdventOfCompilerOptimisations, where the only horrors are in the tortured C code that gets turned into beautiful elegant assembler. The golden moment was the footnote alerting me to the existence of #CompilerExplorer's "optimisation pipeline explorer".

https://xania.org/202512/03-more-adding-integers

You can't fool the optimiser — Matt Godbolt’s blog

Pattern recognition can see through obfuscated code to find the right instruction

Thanks @mattgodbolt for reminding me what a many-tentacled pile of slimy horrors the x86 instruction set is.

But the types! The types! You can't do that with pointers!

[gibbering, weeping and gnashing of teeth noises in south London]

https://xania.org/202512/02-adding-integers

#AdventOfCompilerOptimisations #AdventOfAbominations

Addressing the adding situation — Matt Godbolt’s blog

We learn why adding on x86 isn't as obvious as you might think