I'm Building a Multi-Target Compiler Backend from Scratch — No LLVM, No Crutches
Gideon Towolawi is developing a multi-target compiler backend from scratch without using LLVM or other frameworks. He is currently in the parser stage and aims to create a compiler that emits machine code for various architectures. The project emphasizes fine-grained control over features like SIMD and security while documenting the entire process in real time.
- ▪Towolawi has three years of experience in C++ and is building a compiler backend toolkit.
- ▪The compiler will support multiple targets including x86-64, SPIR-V, ARM64, RISC-V, and WASM.
- ▪He is currently working on a hand-written recursive descent parser with a C++-like syntax.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3936747) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Gideon Towolawi Posted on May 17 I'm Building a Multi-Target Compiler Backend from Scratch — No LLVM, No Crutches #compilers #systems #backend #simd I'm Gideon. 18. Three years of writing C++ from the ground up — ray tracers, video codecs, and now a compiler. No frameworks. No LLVM. Just me, the hardware manuals, and a lot of wrong turns. This post starts a series where I document the build in real time. I'm currently in the parser stage.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).