The post delves into the eccentricities and obscure bugs of the Windows RC compiler (rc.exe). It includes examples of bizarre behaviors like peculiar tokenization rules and parsing quirks, particularly with .rc files. The author recounts their experiences with creating a Windows resource compiler in Zig and achieving compatibility with rc.exe through detailed fuzz testing. The post also contrasts this compiler with other tools like windres and llvm-rc.
Table of contents
Context 🔗Who is this article for? 🔗A brief intro to resource compilers 🔗The list of bugs/quirks 🔗Conclusion 🔗Sort: