Question: You have a machine that can execute Alpha machine code and the following programs: 1 : A compiler from C to Alpha machine code written
You have a machine that can execute Alpha machine code and the following programs:
: A compiler from C to Alpha machine code written in Alpha machine code.
: An interpreter for ML written in C
: A compiler from ML to C written in ML
Now do the following:
EXERCISES
a Describe the above programs and machine as diagrams.
b Show how a compiler from ML to C written in Alpha machine code can be generated from the above components. The generated program must be standalone, ie it may not consist of an interpreter and an interpreted pro gram.
c Show how the compiler generated in question b can be used in a process that compiles ML programs to Alpha machine code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
