Articles on Compiler
Last updated: 2022/08/22
Top deep-dives on Compiler
Maybe a lot of you have computer science degrees, and covered topics like compilers in classes. Personally, I don't, and never really spent time learning the basics or diving into the details. If you're in a similar position, or just slept through your compilers 101 class, this article is for you. Patrick Louis goes over some notes and interesting points he jotted down in regards to compilers. Patrick describes the general structure of a compiler and then focuses on explaining all of the key definitions, with code and textbook examples to bring the point across.
Andy Wingo discusses the fundamentals of writing a garbage collector.
The ARM Cortex-M is a group of 32-bit RISC ARM processor cores optimized for low-cost and energy-efficient operation. One of their drawbacks is that unlike other processors, Cortex-M doesn't allow for Position Independent Code to be generated, a huge limitation when it comes to firmware updates. In this article, Pavel Loktev explains why this issue exists and how the LLVM compiler was modified to resolve it.
Krister Walfridsson demonstrates how and why compilers might choose to use cmove or branch.
Jeremy Ong compiles shaders in Compile Explorer and peruses the output.
Vladimir Makarov "discuss[es] how [he] plan[s] to support the generation of specialized and deoptimized code in MIR, and what support has already been implemented in the MIR project".