On translating Modula-2 programs to C: local procedures and modules


Lehel Szarapka, Dragan Mašulović




This paper demonstrates techniques that enable efficient translation of Modula-2 programs to C. It focuses on a key problem that appears during translation: local procedures and modules. The techniques are presented via examples. For the sake of readability, instead of C a subset of Modula-2 (called Flat Modula-2) is used as a target language.