Three-Address Code — How to Create a Compiler part 3/5 — Converting AST into statement-based IR @Bisqwit
Three-Address Code — How to Create a Compiler part 3/5 — Converting AST into statement-based IR  @Bisqwit
Uploaded February 2018 | Updated November 2026, 5 days ago
In this tool-assisted education video series I create a compiler in C++ for a B-like programming language. In this episode the program code is converted from a tree structure into a list of statements — a tree-address code — much like assembler, but still a more abstract form.

This is part of a multi-episode series. In the next video, we will optimize the IR code.

Become a member: youtube.com/Bisqwit/join

Downloads:
— github.com/bisqwit/compiler_series/tree/master/ep3 All the material associated with this episode can be downloaded here.

Check out this book if you would like to learn more indepth about compilers and optimization (Amazon affiliate link):
— amazon.com/gp/product/1558603204/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1558603204&linkCode=as2&tag=oellilu-20&linkId=973a02b8027731c84e9875e552d55ac9

Acknowledgements:
— Music: Remember Me :: () :: () ()
— Music: The Longest Journey :: () :: () ()
— Music: Famicom Tantei Club Part II: Ushiro ni Tatsu Shōjo :: Interrogation :: Kenji Yamamoto (converted into MIDI and played through OPL3 emulation through homebrew software)
— Music: Star Ocean :: Town 2 :: Motoi Sakuraba (SPC-OPL3 conversion)
— Music: The Longest Journey :: () :: () ()
— Music: Aryol :: Warmup :: Kyohei Sada (SPC-OPL3 conversion)
— Music: Light Fantasy :: Field theme 2 :: TODO (SPC-OPL3 conversion)
— SFX: Mostly from YouTube Audio Library. Some are recorded from video games like The Guardian Legend and Lunar Ball.

My links:
Twitter: twitter.com/RealBisqwit
Liberapay: liberapay.com/Bisqwit
Patreon: patreon.com/Bisqwit (Other options at bisqwit.iki.fi/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit

You can contribute subtitles: youtube.com/timedtext_video?ref=share&v=fDKfdyDWdE4 or to any of my videos: youtube.com/timedtext_cs_panel?tab=2&c=UCKTehwyGCKF-b2wo0RKwrcg

#Bisqwit #Compiler #Tutorial
Three-Address Code — How to Create a Compiler part 3/5 — Converting AST into statement-based IRUr-Quan Masters: No-Starbase Practice Run: PART 8/12Portal 2 custom map LinearityLive stream: Behind the scenes   planning a programming videox86 mov insns & short history of the most popular CPU architectureBisqwit Plays: The Talos Principle [1/4] (complete blind 100% all endings)A little intermission : 20000 subscriber thoughts[SGDQ 2015 TAS race] Streemerz - Top 10ish, synced encodeCreating a Rogue-like game [C++11 programming]Ur-Quan Masters: No-Starbase Practice Run: TOTALLY UNCUT PART 2/9Creating a Terminal Emulator PART 6 [c++ live stream]What are EXE files made of?
Bisqwit |

Three-Address Code — How to Create a Compiler part 3/5 — Converting AST into statement-based IR

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER