Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

Students also viewed these Databases questions

Question

Explain the importance of Human Resource Management

Answered: 1 week ago

Question

Discuss the scope of Human Resource Management

Answered: 1 week ago

Question

Discuss the different types of leadership

Answered: 1 week ago

Question

10. Are you a. a leader? b. a follower? _______

Answered: 1 week ago