How does a compiler work?
Nathan Baggs Nathan Baggs
36.7K subscribers
11,318 views
0

 Published On Mar 25, 2023

In this video we'll take a look at how compilers work and the process they take to turn code into something a computer can execute

0:00 Intro
1:04 Stage 1
1:42 Stage 2
2:22 Stage 3
2:40 Stage 4

Links
========================================================
Lexer output:
- clang++ -fsyntax-only -Xclang -dump-tokens code.cpp
- https://godbolt.org/z/zTTrYs189

Parser output:
- clang++ -fsyntax-only -Xclang -ast-dump code.cpp
- https://godbolt.org/z/Td71dcKzP

Code gen output:
- clang++- -S -masm=intel code.cpp && cat code.s
- https://godbolt.org/z/acrsGqxKM

💭 All views are my own 💭

Kit
========================================================
🎥- DJI Pocket 2 Creator Combo - https://amzn.to/3kxQeZh
🎙️- Blue Yeti - https://amzn.to/3EE1Wsm
💡- Govee Floor Lamp - https://amzn.to/3ZisN4Y
⌨️- Corsair K70 RGB MK.2 - https://amzn.to/3EDIonM

Books
========================================================
📖 - Effective Modern C++ - https://amzn.to/3EDIonM
📖 - A Tour of C++ - https://amzn.to/41pI1qH
📖 - C++ Templates: The Complete Guide - https://amzn.to/3Zmi0ql

Music
========================================================
Get Summer's Shadow by Max Brodie and over 1M + mainstream tracks here https://go.lickd.co/Music

License ID: ab7ZXzLZ4lX

show more

Share/Embed