![]() |
|
|
|
|
|
|
8
9th October 22:49
External User
Posts: 1
|
I admire your enthusiam, but as i have said before if you are not writing
the compiler in PL/I you are wasting your energies. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |
|
|
10
13th October 21:38
External User
Posts: 1
|
A hand-coded state machine lexer for PL/I doesn't need to be more than a
few hundred lines of code (now I have to go count ... ok its about 500) and is highly extensible and maintainable. Now I haven't used flex and bison, but my experience with lex and yacc 20 some years ago left me with a pretty low opinion of these tools Yes, and the first bootstrap was accomplished by writing an intermediate language interpreter. To make this easier, the compiler was written in a fairly small subset of PL/I only requiring approximately 80 operators to compile the compiler Actually the PL/I we did for Tru64 used vpo as the backend, an earlier version of which, is what gcc uses for the backend. So what we did there was to take an existing code generator (written in PL/I of course) and retarget it for the abstract machine to generate the rtl's. Maybe not as important as how they are designed. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |
|