Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use tombstone notation. If any code needs to be implemented, show what and also explain how - from scratch, or how with minimal efforts, unless

Use tombstone notation. If any code needs to be implemented, show what and also explain how - from scratch, or how with minimal efforts, unless stated otherwise. You cannot assume you will buy something.

1. You have machine M, and executable binaries for a C->M host compiler. You also have C source for Pascal->C compiler. Show what you have with tombstone diagrams

2. You write an application Prj in C. Show all steps until generative execution.

3. Redo showing all steps for interpretive execution (note you dont have an interpreter yet).

4. You then write the same application in Pascal. Show all that is needed for any execution.

5. After doing the above, you need to run both projects on small-resource machine N. Assuming that N is too small to run any translators, what you do? Show with diagrams.

6. Now your N is larger (maybe you bought more memory) and you can now start running compilation on N, and you want to implement a compiler somehow rather than buy (maybe no one sells compilers for N), what you do? Show all steps with diagrams.

7. In the example in the notes, the Pascal execution environment was improved by implementing PCode->M compiler. But the Pascal->PCode compiler could be changed to compile directly into M instead. Assume this is the approach, show what is modified, how compiled, and explain what can be improved this way.

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions