Question
[Architecture] Suppose we would like to implement the run time environment for a new programming language called Mocha . Our goal is to design a
[Architecture]
Suppose we would like to implement the run time environment for a new programming language called Mocha. Our goal is to design a flexible program execution environment written in this language so that we can run Mocha programs on different computers regardless of their operating system or architecture. The Mocha Runtime Environment (MRE) will compile the Mocha source code in an intermediate language called AuLait. Aulait programs will run on a virtual machine - interpreter called the Cup. We also want to be able to implement and integrate easily into architecture a compiler that can compile when AuLait programs if needed to binary (i.e. machine language) for the more efficient execution of Mocha programs directly on a target computer processor.
1. Which architectural style is the most suitable for this application? Give a list of the main system components and briefly comment on the role of each component.
2. Draw a) the component diagram of the above system and
3. Comment which pattern would be appropriate to design the system so it is flexible enough to be able to replace the interpreter that runs Aulait programs in the Cup virtual machine with a compiler translator that translates AuLait programs into machine language without changing the rest of the design / implementation of the system.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started