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

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

Database Systems For Advanced Applications 9th International Conference Dasfaa 2004 Jeju Island Korea March 2004 Proceedings Lncs 2973

Authors: YoonJoon Lee ,Jianzhong Li ,Kyu-Young Whang

2004th Edition

3540210474, 978-3540210474

More Books

Students also viewed these Databases questions

Question

describe the main employment rights as stated in the law

Answered: 1 week ago