Pristine Ack-5.5
[Ack-5.5.git] / doc / occam / p5
1 .NH
2 Conclusions
3 .PP
4 Writing the compiler was very straightforward using the LLgen parser generator.
5 Its extended grammar and its way of conflict resolving were of great use to us,
6 especially
7 the indentation handling could be implemented quite easily. The automatic
8 error recovery given by LLgen took a great weight of our shoulders.
9 .PP
10 A set of parallelism simulation routines makes implementing \fBPAR\fP constructs
11 very simple. And we consider it a necessity to have such a layer to shield the
12 compiler writer from these details.
13 .PP
14 The translation to EM code was fairly direct, no great tricks were needed to
15 make things work. Only the different sizes of words and pointers that are given
16 as parameters to the compiler must be carefully watched. Variables or pointers
17 must sometimes be handled with double word instructions for different word or
18 pointer sizes.