State True or False 1. Language processing activities of an interpreter can be separated from its program execution activities. 2. Acompiler uses a queue to compile nested control structures in a program. 3. Scope rule determines the accessibility of variables declared in different blocks of a program.
[3 marks]Considering the following expression grammar, discuss the ambiguity in grammatical specification. <exp> ::= <id> | <exp> + <exp> | <exp> * <exp> <id> ::= a | b | c
[4 marks]Do as directed: 1. What is the output of scanning phase of a compiler? 2. Grammar of the programming is checked at _______ phase of compiler. 3. What is the role of POOLTAB data structure in Pass-Iof an assembler? 4. What is the use of value numbering in local optimization of a program? 5. Which kind of macro expansion implies generation of instruction tailored to the requirements of a specific usages? 6. If the Linked origin ≠ Translated origin, will the linker performs the relocation? 7. What is the relevance of 1 in LL (1) parser?
[7 marks]Explain how Reference Count method assist memory management.
[3 marks]What is left recursion? Eliminate the left recursion from the following grammar. E E + T | T T T * F | F F ( E ) | id
[4 marks]Compare and contrast recursive descent parsing with LL (1) parsing. What grammar forms are acceptable to each of these?
[7 marks]In which situation, assembly language programming holds an edge over high level language programming?1
[3 marks]Justify the statement, “The use of Type-3 production (grammar) is restricted to the specification of lexical units”.
[4 marks]Discuss the following assembler directives with example: a) ORIGIN b) EQU
[7 marks]What is the relevance of LITTAB and OPTAB data structure in two pass assembler?
[3 marks]Discuss the need for left factoring in grammar? Explain it with suitable example.
[4 marks]Compare and contrast variant-I & II of the intermediate code for imperative statements in assembler.
[7 marks]State the limitations of stack based memory allocation model.
[3 marks]What do you mean by relocatable and non relocatable programs?
[4 marks]Discuss the macros with mixed parameter lists (i.e., keyword and position parameter) with example.
[7 marks]What do you mean by Optimization Transformation?
[3 marks]Discuss the role of linker and loader.
[4 marks]Discuss various data structure involved in macro preprocessing with suitable example.
[7 marks]List out the various components of an Object Module.
[3 marks]Discuss the role of Profile Monitor.
[4 marks]Discuss various compiler optimization techniques with example.
[7 marks]Justify, “Indirect Triples is useful in optimizing compilers”.
[3 marks]Discuss the role of Debug Monitor.
[4 marks]Explain in detail, how the linker resolves the external references.
[7 marks]