Spread Knowledge

Virtual University of Pakistan Video Lectures, Handouts, PPT, Quizzes, Assignments & Papers

CS606 - Compiler Construction - Lecture Handout 37

User Rating:  / 0

Related Content: CS606 - VU Lectures, Handouts, PPT Slides, Assignments, Quizzes, Papers & Books of Compiler Construction

Here is the bottom-up parse of the assignment statement a = b*-c + b*-c and the syntax-directed translation into three-address code.

Parser action attribute Three- address code
id=id ∗ –id + id ∗ –id    
id=E1 ∗ –id + id ∗ –id E1.place = b  
id=E1 ∗ –E2 + id ∗ –id E2.place = c  
id=E1 ∗ E2 + id ∗ –id E2.place = t1 t1 = – c
id=E1 + id ∗ –id E1.place = t2 t2 = b∗t1
id=E1 + E2 ∗ –id E2.place = b  
id=E1 + E2 ∗ –E3 E3.place = c  
id=E1 + E2 ∗ E3 E3.place = t3 t3 = – c
id=E1 + E2 E2.place = t4 t4 = b∗t3
id=E1 E1.place = t5 t5 = t2+t4
S   a = t5

Read more: CS606 - Compiler Construction - Lecture Handout 37

MGT503-Princilpes of Management-Lecture Handout No 44

User Rating:  / 0


Introduction and Overview of Controlling

Regardless of the thoroughness of the planning done, a program or decision still may be poorly or improperly implemented without a satisfactory control system in place.

Controlling is that process of regulating organizational activities so that actual performance conforms to expected organizational goals and standards. While interrelated with all of the other management functions, a special relationship exists between the planning function of management and controlling. Planning, essentially, is the deciding of goals and objectives and the means of reaching them. Controlling lets manager tell if the organization is on track for goal achievement, and if not, why not. A well-developed plan should provide benchmarks that can be used in the control process.

Read more: MGT503-Princilpes of Management-Lecture Handout No 44