"Shmoe" <espo58@[EMAIL PROTECTED]
> wrote in message
news:<838d5f4193a3453de30d8daae370e2c1@[EMAIL PROTECTED]
>...
> I am doing experiments on back-end compiler implementation, and I just
can't seem to find much do***entation on the subject. I have searched all
over the net for the different techniques used, but it seems most sources
cover only the front-end and simply summerize the back. Am I just not
looking in the right places? Are there any tutorials on different back-end
compilers/interpretors?
>
> As of now, I'm only doing research on the different methods used. I
have only written small interpretors that do simple tasks such as convert
similar syntax between specific languages, and would like to expand on
this and write something a little more detailed (such as a C++ compiler, a
small assembler, etc).
>
> I know a good amount of the front-end, but get kind of stuck after
that.. Any help or links of some useful do***ents would be greatly
appriciated!
For a Really Excellent step by step guide to backend code generation,
you can't beat
"Understanding and Writing Compilers: A Do It Yourself Guide" (ISBN
0333217322) by Richard Bornat.
Although it uses a sort of BCPL pseudocode for its examples, this book
all but writes the code for you. I have had no trouble in translating
the code into QBASIC. I can't speak too highly of it when it comes to
explaining code generation.
Cheers
Derek


|