The C version of Let's Build a Compiler is here [0][1]. There are
multiple versions/recent updates by people other than Peter Gray's
original translation [2][3][4]. The original/Pascal version by Jack
Crenshaw is here [5]. I've also been reading Wirth's original Pascal
compiler writing books & works [6]. His code style is just so clear
and succinct it makes the task of (re-)learning the theory easier even
after I did a Compilers class in college with Dragon book.
[0]
http://www.gtoal.com/compilers101/tinc/
[1]
http://www.gtoal.com/compilers101/tinc/01_Peter_Gray/TinC_1_3/History.txt
[2]
http://www.gtoal.com/compilers101/tinc/02_Graham_Toal/
[3]
http://www.gtoal.com/compilers101/tinc/03_Ed_Davis/
[4]
http://www.gtoal.com/compilers101/tinc/06_Rainer_Thonnes/
[5]
http://compilers.iecc.com/crenshaw/
[6]
https://en.wikipedia.org/wiki/Algorithms_%2B_Data_Structures_%3D_Programs
On Thu, Apr 14, 2016 at 11:27 AM, <k0ga_AT_shike2.com> wrote:
>
>> I think compilers are way over my level, but it's a subject that interest me and
>> clang is massive c++, gcc is nonstandard bloat, tcc doesnt seem sufficient,
>> so I wanna help.
>
> There are a lot of places were helping without having a big idea about
> compilers. The scc driver is one of the places. Accepting flags like
> -I, -S or piping the output of cc2 to gas are things that must be
> done.
>
>> Where would be a good place to start learning?
>>
>> I have a book called "Compiler Construction: Principles and Practice", but I
>> find it very tedious.
>> If you know this book, would you say my impression is correct or am I just too
>> stupid yet for such an advanced subject?
>
> Yes, this is true. Ususally books about compilers are really hard.
> They are usually very theoretial, and with too much mathematic. My
> suggestion for a beginner is "Let's build a compiler". It is a serie
> of articles about how to write a compiler without talking about the
> theory. The original articles used Pascal, and I think there is some
> version in internet that translated it to C.
>
> Regards,
>
>
Received on Thu Apr 14 2016 - 20:42:35 CEST