subject

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.

Questions

a) What will you do (with minimal effort) to run the Pascal programs your students submit on your local machine?

b) 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?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
You know the right answer?
You are a Pascal teacher (a very good programmer using assembly language (i. e., machine language) o...
Questions
question
Mathematics, 08.03.2021 19:10
question
Computers and Technology, 08.03.2021 19:10
question
History, 08.03.2021 19:10
Questions on the website: 13722363