Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question: help me to find the answers. thank you! 5. (15) You are a Pascal teacher (a very good programmer using assembly language (i.e., machine

image text in transcribed

image text in transcribed

Question:

image text in transcribed

help me to find the answers. thank you!

5. (15) You are a Pascal teacher (a very good programmer using assembly language (i.e., machine language) of your local machine). You are given only the following programmes: (a) A compiler written in P-code: translate a program in Pascal to one in P-code (P-code is very close to your local machine language). (b) A P-code interpreter written in Pascal: able to interpret any program written in P-code. a) (10) What will you do (with minimal effort) to run the Pascal programs your students submit on your local machine? b) (5) If you are given a compiler written in Pascal which translate a program in Pascal to a program in P-code, how can you produce a compiler in machine language that compiles a program in Pascal to a program in machine language? 5. (15) You are a Pascal teacher (a very good programmer using assembly language (i.e., machine language) of your local machine). You are given only the following programmes: (a) A compiler written in P-code: translate a program in Pascal to one in P-code (P-code is very close to your local machine language). (b) A P-code interpreter written in Pascal: able to interpret any program written in P-code. a) (10) What will you do (with minimal effort) to run the Pascal programs your students submit on your local machine? b) (5) If you are given a compiler written in Pascal which translate a program in Pascal to a program in P-code, how can you produce a compiler in machine language that compiles a program in Pascal to a program in machine language

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

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

More Books

Students also viewed these Databases questions