The compiler will optimize that away | RoyalSloth
A lot of programmers believe that compilers are magic black boxes in which you put your messy code in and get a nice optimized binary out. The hallway philosophers will often start a debate on which language features or compiler flags to use in order to capture the full power of the compiler’s magic. If you have ever seen the GCC codebase, you would really believe it must be doing some magical optimizations coming from another planet.
The compiler will optimize that away Created: 2021-04-01 Reading time: ~16 minutes A lot of programmers believe that compilers are magic black boxes in which you put your messy code in and get a nice optimized binary out. The hallway philosophers will often start a debate on which language features or compiler flags to use in order to capture the full power of the compiler's magic. If you have ever seen the GCC codebase, you would really believe it must be doing some magical optimizations coming from another planet. Nevertheless, if you analyze the compiler's output you will found out that the
Explore this link on the map →related reading
- abseil / Performance Hintsabseil.io
- Optimization of Computer Programs in Cicps.u-strasbg.fr
- abseil / Performance Hintsabseil.io
- Algorithms for Modern Hardware - Algorithmicaen.algorithmica.org
- Compiler Optimizations Are Hard Because They Forget - Faultlorefaultlore.com
- Making Deep Learning go Brrrr From First Principleshorace.io
- Compilers - What Every Programmer Should Know About Compiler Optimizations | Microsoft Learnlearn.microsoft.com
- Memory location matters for performancepythonspeed.com
- how I think when I think about programming - alice mazalicemaz.com
- A friendly introduction to machine learning compilers and optimizershuyenchip.com
- Paul Buchheit: Optimizing everything: some details matter a lot, most don'tpaulbuchheit.blogspot.com
- Laurence Tratt: Four Kinds of Optimisationtratt.net