Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design Layout References Mailings Review View Help 06. What is the language defined by the following pair of BNF rules? cnumber> I 01 1 Where

image text in transcribed
Design Layout References Mailings Review View Help 06. What is the language defined by the following pair of BNF rules? cnumber> I 01 1 Where have you seen this language before? 07. Discuss what other information, in addition to name and data type, might be kept in a semantic record. From where would this other information come? 08. Assume that our language specifically permits you to assign an integer value to a real variable. The compiler handles this mixed mode by generating code to perform data conversion from an integer to a real representation. Consider the following declarations: int x double y: The assignment statement y - x is legal in this language. Ex compiler handles the previous assignment statement. You do not have to show the exact code that would be generated; just describe how a compiler deals with the statement, and show at what point in the code generation process the compiler discovers that it needs to produce the data conversion instructions 09. Assume that we wrote the following pairs of assignment statements Delta 2.9 (a +b3)/ (x -5.7) Epsilon (a +b3)sqrt (3.1 y) How can a compiler optimize the execution of these two statements? Is this considered local or global optimization? 10. If we assume that all mathematical operations take 5 nsec (5 billionths of a to execute how much time does your optimization from Exercise 09 actually save? What does this value say about the importance of compiler optimizations

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

More Books

Students also viewed these Databases questions

Question

What is necessary to implement the IMC plan?

Answered: 1 week ago