Guidance Needed
Posted by TSM_7@reddit | learnprogramming | View on Reddit | 11 comments
I want to learn what happens behind the scenes when we write code. How does the code go through different stages and finally get executed by the computer? Any resource you guys could provide to learn this process in depth.
ponderingpixi17@reddit
CS:APP first chapter gives a great overview without being too overwhelming. It helped me see the layers between code and what the computer actually does.
sq_route_2@reddit
The book CS:APP is also a great resource. It’s online for free: https://www.cs.sfu.ca/\~ashriram/Courses/CS295/assets/books/CSAPP_2016.pdf
TSM_7@reddit (OP)
I checked it many suggested not go with it as a beginner.Is it true ? I have basic programming language and have coded in Cpp.
sq_route_2@reddit
I would recommend to read the first chapter. It is beginner friendly. It gives you a great overview and might even answer some of your questions already. After reading the first chapter you can decide if you want to proceed or not.
TSM_7@reddit (OP)
Okay 👍.
crawlpatterns@reddit
honestly this rabbit hole gets super intresting once you start digging into it because you realize there are sooo many layers between “i wrote code” and “computer did thing.” learning a bit about compilers, interpreters, operating systems, memory, and cpu architecture helps everything click together way more. the book “computer systems: a programmer’s perspective” gets recommended a lot for this kinda stuff and for good reason, though it can feel dense at first lol. also watching someone build a tiny compiler or emulator on youtube weirdly made the whole process feel way less magical to me.
desrtfx@reddit
For goin all in: NAND2Tetris
For the rest, wikipedia: compiler, interpreter, machine code
KlutzyCod4637@reddit
That's a solid advice mate.
Every-Possession1187@reddit
been through NAND2Tetris in my CS classes and its pretty intense but you'll understand everything from logic gates to OS by end of it
TSM_7@reddit (OP)
Okay 👍
azac24@reddit
Yes