Not a full course (apologies in advance) but I have heard a lot of people get a good introduction from: http://compilers.iecc.com/crenshaw/ It was written with Turbo Pascal in mind but many have read the text and transcribed the instructions to a language of their choosing. Should be at least a good introduction to compilers.
Ask HN: Recommend an introductory course on compilers
11–20 of 23 posts
Re: Ask HN: Recommend an introductory course on compilers
#12https://howistart.org/posts/nim/1
As well as playing a bit with ometa:
Re: Ask HN: Recommend an introductory course on compilers
#13Over the course of the book you implement compiler construction tools (a LEX clone and two YACC clones) and then use those to build a C compiler.
Re: Ask HN: Recommend an introductory course on compilers
#14Re: Ask HN: Recommend an introductory course on compilers
#151) Theory of computation (can't recommend a book for this one)
2) Programming language theory (Book: Programming Language Pragmatics)
3) Compiler construction (Book: Engineering a compiler or the Dragon Book)
Re: Ask HN: Recommend an introductory course on compilers
#16James Kyle (who created Babel) wrote a 'Super Tiny Compiler' that's a really great (low barrier to entry) place to start. The inline docs are super well written, clear and extensive. It's also implemented in JabaScript. It's an amazing learning tool and I really loved reading it! https://github.com/thejameskyle/the-super-tiny-compiler
Re: Ask HN: Recommend an introductory course on compilers
#17You should split your study into three parts. 1) Theory of computation (can't recommend a book for this one) 2) Programming language theory (Book: Programming Language Pragmatics) 3) Compiler construction (Book: Engineering a compiler or the Dragon Book)
Ullman used to have a course on Automata via Coursera but the platform changes have sent it down the memory hole.
Re: Ask HN: Recommend an introductory course on compilers
#18It's self-paced now.
Re: Ask HN: Recommend an introductory course on compilers
#19Very good question. I am interested in reading the suggestions as well. Also, a specific book question: is Engineering a Compiler by Cooper & Torczon any good?
I got almost nothing out of the book Engineering a Compiler.
Aside from that the class was amazing. Maybe the next edition has become excellent? I knew people who took the class using the Dragon book and found that book unhelpful too.
I'm currently reading Wirth's book and really enjoying it though.
Re: Ask HN: Recommend an introductory course on compilers
#20Not a full course (apologies in advance) but I have heard a lot of people get a good introduction from: http://compilers.iecc.com/crenshaw/ It was written with Turbo Pascal in mind but many have read the text and transcribed the instructions to a language of their choosing. Should be at least a good introduction to compilers.