Recently, I was very interested in compilers and how they work. Since gcc has this source, I decided that this would be the best material to study.
The first thing I realized was that it would be pointless to learn gcc if I didn’t have a basic understanding of the simple principles of compiler design. Since then, I have been diligently reading The Dragon Book, which, from what I saw, is a de facto book on compiler implementation.
No, reading this book only contributed to my desire to learn about compilers such as gcc.
In addition, I find it appropriate to say that I have an intermediate understanding of c / C ++ (otherwise, I am not trying to learn gcc without knowing c). I hope learning gcc will help me improve this.
I downloaded the latest build I could find; however, I am lost in learning the source code.
I am looking for suggestions on how to proceed. Is there a similar project that is not so massive that I could use as a step to gcc? Is there a special gcc module that could be recommended first? Are there any books that go to gcc implementation and not use? Perhaps I should stop whining and just keep reading the source until it clicks?
Any feedback is welcome.
EDIT: If you think I should study another compiler / interpreter, I would really appreciate some suggestions regarding which ones.
source share