Question: Subject: Compiler Construction You have a machine that can execute Alphamachine code and the following pro-grams: 1: A compiler from C toAlphamachine code written inAlphamachine
Subject: Compiler Construction
You have a machine that can execute Alphamachine code and the following pro-grams:
1: A compiler from C toAlphamachine code written inAlphamachine code.
2: An interpreter for ML written in C.
3: A compiler from ML to C written in ML.Now do the following:
a) Describe the above programs and machine as diagrams.
b) Show how a compiler from ML to C written inAlphamachine code canbe generated from the above components. The generated program must bestand-alone,i.e., 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 thatcompiles ML programs toAlphamachine cod
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
