Re:Ask HN: How does the return statement of a function work?
by hayst4ck on Monday April 10, 2023 @06:53AM
(#35510958)
https://www.nand2tetris.org/
Might also interest you.
Re:Ask HN: How does the return statement of a function work?
by noob_eng on Monday April 10, 2023 @08:50AM
(#35511645)
Thanks for the suggestion. Btw, which compiler class are you talking about?
Re:Ask HN: How does the return statement of a function work?
by hayst4ck on Thursday April 13, 2023 @11:51PM
(#35565323)
I don't think any particular college has set the standard for compiler education.
Maybe one of these: https://www.seas.upenn.edu/~cis3410/current/schedule.html https://www.cs.princeton.edu/courses/archive/spring20/cos320... https://online.stanford.edu/courses/soe-ycscs1-compilers
I think the dragon book is well respected: https://en.wikipedia.org/wiki/Compilers:_Principles,_Techniq...
This one might be good too: https://www.elsevier.com/books/engineering-a-compiler/cooper...
Reddit comparison: https://www.reddit.com/r/Compilers/comments/pjn25h/how_does_...
With this textbook: https://csapp.cs.cmu.edu/
Is the gold standard of education for the question you are asking.
There is probably a class on compilers if you thirst for even more depth.
I suppose it's important to mention that your selection of python matters a lot because the language itself is very meaningful to the behavior you want to understand.
Can you explain what malloc is and why it is needed in C? Do you know what %rip is? If you understand those concepts, then the question you are asking is very different than the question you are asking if you don't.
If you understand those concepts you are asking: "How does python work?"
If you do not understand those concepts you are asking: "How does memory management work?"