How Compilers Work

preview_player
Показать описание
This is a graduate level overview of how a compiler transforms code written a specific programming language into machine code that can be executed by an actual processor. Enjoy :)

I originally made this video for my Interact 2017 application.
Рекомендации по теме
Комментарии
Автор

Short and to the point. Much better than 1 hour lectures with fancy looking colored slides but too less details. The handwritten pages here are quite detailed; it just needs stopping the video and making a screenshot to have good "slides" to study it. And explaining compilers in 3m33s looks like worth a Guiness Book of Records entry.

smallsnippets
Автор

Bro! Fantastic approach. No graphical animated BS. After 40 min on YouTube I finally get my head around that. Many thx 🙏

michagorecki
Автор

Thanks I actually liked the fast explanation

Ombree
Автор

i wish i was as fascinated by compilers as he is

ricardomuller
Автор

i'm adding "intellectually stimulating" to my phrasal vocabulary now

some-fan
Автор

Thanks. A little too fast though...especially the linking. We’re those actually tokens or “lexemes”?

ALL_ONE_SUN
Автор

You missed optimisation, Thats the cool part, Ill give a scenario. You initialised a bunch of variables that do nothing, you made a for loop, The compiler might skip assigning these variables to registers if they're deemed redundant, and it could opt for a while loop instead, as it often has a faster runtime.
I did this irl by compiling basic C and Rust code, I ran 'objdump -d -Mintel ./*Name of executable* | less' in bash, which lets you inspect the compiled assembly code, I'm not going to pretend like i understand it all, but I recognised what the compiler did. and was blown away, because ts cool as hell
If you decide to do this in Rust, be wary as you would have to declare a bunch of stuff for it to run bare bones, as it compiles with the ENTIRE std library apposed to C where its only the ones u mentioned ..linkerz'n'loaderzz type shii

sauravmahay
Автор

Ok, now explain to me like I'm five lol

sailormoon
Автор

Perfect!
Please make a video on YARN and how to build a compiler in the same way (on paper) don't include coing.

vishalkokate
Автор

nice video my man why did u stop making more videos should`ve kept at it

mrteejay
Автор

And I am going to explain how Apple creates iphone13
Yes i am going to give the procedure, you can make MILLIONS ; )

The procedure -
1) first apples takes some raw materials.

2) then it creates what is known as a " motherboard " for the smartphone

3) then they put some, what's known as, " software " in the motherboard.

4) some final touches, like aesthetics and stuff,

And wallah, you got a brand new iPhone 13.
Now go and be RICH 🙌🙌🙌🙌

adityamishra
Автор

hey can you do a slower video and also go thru an example step by step
thanks

benmarcus
Автор

Thanks, man, but I wonder if the compiler does the register Allocation how my variables and objects stored in memory in the stack and the hep I mean who is responsible for putting my variables in the memory

zeyadjy
visit shbcf.ru