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

ความคิดเห็น • 10

  • @olucasromero
    @olucasromero 26 วันที่ผ่านมา

    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 ✌🏻

    • @Jack-hd3ov
      @Jack-hd3ov 25 วันที่ผ่านมา

      Where is the fun in just running someone else's code?

    • @olucasromero
      @olucasromero 25 วันที่ผ่านมา

      @@Jack-hd3ov I see, quite right but I think llvm make the process good, not taken so much responsibility from compiler itself

    • @TomMarksTalksCodeLIVE
      @TomMarksTalksCodeLIVE  25 วันที่ผ่านมา

      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

    • @olucasromero
      @olucasromero 24 วันที่ผ่านมา

      @@TomMarksTalksCodeLIVE ohh I see, nice work! I will follow your journey

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 27 วันที่ผ่านมา +1

    Why everyone writes a compiler in Rust?

    • @TotalTimoTime
      @TotalTimoTime 27 วันที่ผ่านมา

      Its fast and very safe. Very good language choice for a compiler.

    • @TomMarksTalksCodeLIVE
      @TomMarksTalksCodeLIVE  27 วันที่ผ่านมา +1

      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.

  • @isaac10231
    @isaac10231 25 วันที่ผ่านมา

    Is that neovim?