Sciweavers

SIGCSE
1997
ACM

Introducing fixed-point iteration early in a compiler course

14 years 3 months ago
Introducing fixed-point iteration early in a compiler course
When teaching a course in compiler design, it is conventional to introduce the iterative calculation of least fixed points quite late in the course, in the guise of iterative dataflow analysis. In this paper I point out that the same mathematical and algorithmic ideas can be introduced much earlier, in the parsing portion of the course, as an explanation of the standard algorithm for computing the FIRST sets of a context-free grammar. Doing so not only renders these techniques more familiar when they re-appear in data-flow analysis, it also provides a more sound foundation for the FIRST algorithm than is typically offered. Moreover, these techniques deserve increased curricular prominence because they naturally lead to proofs of correctness for general nondeterministic algorithms that subsume multiple deterministic algorithms.
Max Hailperin
Added 07 Aug 2010
Updated 07 Aug 2010
Type Conference
Year 1997
Where SIGCSE
Authors Max Hailperin
Comments (0)