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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!