Interesting performance improvement of adding -O3 to clang / GCC on my solution to problem 14 of Project Euler - reduces the execution time by 90%. Haven't checked all the output, but two areas that stand out are:
Replacing IDIV with TEST al, 1 for checking if 2 is a factor.
🔍 Join our 60-minute presentation on Compiler Explorer with @mattgodbolt 🚀
Uncover hidden features and explore the latest functionality within Compiler Explorer. Live demos will showcase its power, from program input to Control Flow Graphs. Enhance your Compiler Explorer skills! 🌐💻
I just thought it would be a great idea to put #CompilerExplorer on my already completely overwhelmed dying server with a SMR hard drive and highly questionable kernel modifications by me.