Question 1
Explain the role of linker, loader and preprocessor in the process of compilation.
Define lexeme, token and pattern. Identify the tokens from the following program segment void change (int c, int d) { int m; m = c; c= d; d = m; }
Explain the role of linker, loader and preprocessor in the process of compilation.
Define lexeme, token and pattern. Identify the tokens from the following program segment void change (int c, int d) { int m; m = c; c= d; d = m; }
Find the Regular Expression corresponding to given statement subset of {0,1}*
Draw DFA for the following regular expression without construction of NFA. ( a | b) * a (a | b)#
Explain the stack implementation of shift reduce parser with the help of example.
Check the following grammar is SLR(1) or notS → Aa | bAc | Bc | bBaA → dB → dFind out FIRST & FOLLOW set for all the NonterminalsS-> 1AB | ϵA-> 1AC | 0CB-> 0SC->Write a syntax directed definition for desk calculator. Using this definition draw annotated parse tree for 6*3+5n
Explain syntax directed definition to produce three address codes for flow of control statements with suitable example.
Draw the parse tree and derive the left most derivation using the followinggrammar for the input string: (a + a) * (a * a).E → E + T | TT → T * F | FF → ( E ) | aCirculate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.
Official Gujarat Technological University (GTU) examination paper and step-by-step solutions for Compiler Design (CD) (Winter 2023, B.E. · Computer Engineering, Sem 7). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.
Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.