Building a Compiler - Optimization and Register Allocation
ฝัง
- เผยแพร่เมื่อ 14 ต.ค. 2024
- My compiler works, but it's painfully inefficient. It's time to invent a solution to tracking register state, so that we don't need to do quite so much via the stack. It turns out this is a bit more complicated than my previous back of the napkin sketches!
Stream date: 2024-09-09
Support the stream: ko-fi.com/tomm...
Source: github.com/phy...
Streamed live @ / tommarkstalkscode
Join my Discord: / discord
Follow me at coding.tommark...
Email: tom@tommarks.xyz
Why don’t use llvm?
Good video. Would like if you make it shorter for TH-cam instead a raw live
I will follow the progress ✌🏻
Where is the fun in just running someone else's code?
@@Jack-hd3ov I see, quite right but I think llvm make the process good, not taken so much responsibility from compiler itself
I'm going to make a video about this whole process and put it on my other channel. This is the livestream dump channel, these are _slightly_ edited though! Just to cut out bathroom breaks, the longer intro, etc
@@TomMarksTalksCodeLIVE ohh I see, nice work! I will follow your journey
Why everyone writes a compiler in Rust?
Its fast and very safe. Very good language choice for a compiler.
It's a good project for learning a language, and lots of people are interested in Rust. As @TotalTimoTime mentioned the memory safety features are also very good for making this kind of thing relatively bulletproof.
Is that neovim?
Yes!