Skip to content
TrackPodcasts
artsMay 24, 202521:38pending

Writing a C Compiler: Build a Real Programming Language from Scratch

About this episode

It  walk the reader through the stages of compilation, beginning with basic steps like lexical analysis and parsing using techniques like recursive descent and precedence climbing. The sources introduce key concepts like Abstract Syntax Trees (ASTs) and intermediate representations such as Three-Address Code (TACKY), explaining how they facilitate the conversion of C code to assembly. Subsequent chapters discuss implementing various C language features like unary and binary operators, including arithmetic, logical, and relational operations, detailing how these are translated into x64 assembly instructions, the use of registers, and the management of the stack with concepts like stack frames. The explanations also cover relevant assembly instructions, flag registers like RFLAGS, conditional operations, and the handling of potential issues like integer overflow.

You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cyber_security_summary

Get the Book now from Amazon:
https://www.amazon.com/Writing-Compiler-Programming-Language-Scratch/dp/1718500424?&linkCode=ll1&tag=cvthunderx-20&linkId=5274b0b811e5d58a844bf8ac6c5a7436&language=en_US&ref_=as_li_ss_tl



Discover our free courses in tech and cybersecurity, Start learning today:
https://linktr.ee/cybercode_academy

Get every episode summarized

Each time CyberSecurity Summary publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.

Email me new episodes

Free for 3 shows. No card needed.

No transcript yet

This episode has not been transcribed. Request it and it moves to the front of the queue.

Writing a C Compiler: Build a Real Programming Language from Scratch

CyberSecurity Summary

0:00
21:38

More episodes

More from CyberSecurity Summary

View all episodes →