Building a Compiler - Optimization and Register Allocation

Поделиться
HTML-код
  • Опубликовано: 18 сен 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

Комментарии • 4

  • @olucasromero
    @olucasromero 18 часов назад

    Why don’t use llvm?
    Good video. Would like if you make it shorter for RUclips instead a raw live
    I will follow the progress ✌🏻

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 День назад

    Why everyone writes a compiler in Rust?

    • @TotalTimoTime
      @TotalTimoTime День назад

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

    • @TomMarksTalksCodeLIVE
      @TomMarksTalksCodeLIVE  День назад +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.