Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose we change the Tiger language to use Ada's copy-in-copy-out parameter passing mechanism. If a parameter is declared with the keywords in out, it uses

image text in transcribed
Suppose we change the Tiger language to use Ada's copy-in-copy-out parameter passing mechanism. If a parameter is declared with the keywords in out, it uses copy-in-copy-out. Otherwise, we use call-by-value as before. With copy-in-copy-out, the argument is copied into the parameter variable on entering the function. On function exit, the parameter is copied back out into the argument vari- able. Describe in detail which changes (if any) are necessary to semantic analysis, escape analysis, activation records, and the intermediate representation. 2. Draw the intermediate code trees for questions 7.1(f), 7.1(h), 7.2(g), 7.2(G) on p. 160 7.1 Suppose a certain compiler translates all expressions and subexpressions into Tree. Exp trees, and does not use the Nx and Cx constructors to represent expressions in different ways. Draw a picture of the IR tree that results from each of the following expressions. Assume all variables e, a

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

2. Are you varying your pitch (to avoid being monotonous)?

Answered: 1 week ago

Question

3. Are you varying your speaking rate and volume?

Answered: 1 week ago