This document discusses two approaches to compiling a programming language by translating an abstract syntax tree representation of a program into assembly language: (1) using an ad hoc recursive tree walking program, or (2) using an algorithm based on tables automatically generated from tree translation rules. It allocates 10 marks for discussing each approach.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
34 views
1993 Paper 3 Question 5
This document discusses two approaches to compiling a programming language by translating an abstract syntax tree representation of a program into assembly language: (1) using an ad hoc recursive tree walking program, or (2) using an algorithm based on tables automatically generated from tree translation rules. It allocates 10 marks for discussing each approach.