[go: up one dir, main page]

100% found this document useful (1 vote)
2K views104 pages

Compiler Design

MAKAUT Organizer of Compiler Design

Uploaded by

Suvadeep Dutta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
100% found this document useful (1 vote)
2K views104 pages

Compiler Design

MAKAUT Organizer of Compiler Design

Uploaded by

Suvadeep Dutta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 104
COMPILER DESIGN Introduction to Compiler ~~ Lexical Analysis. 1“ Parsing and Context Free Grammar — 28 Operator Precedence Parsing 38 Top-Down Parsing —— a Bottom-Up Parsing and LR Parser Generation Theory St Syntax Directed Translation —~ 68 Type Checking - es Runtime Environment a cs Intermediate Code Generation 5 Code Optimization ed ma eT cae orcs 9 LANGUAGE PROCESSOR [CS 701] has been redesigned as COMPILER. DESIGN | ncn een Tagan : Jevant WBUT questions and solutions of LANGUAGE PROCESSOR pores | anes 2w university PaF s Se i noone ee Jpout university questions patterns. that students can get 2n idea 2 POPULAR PUBLICATIONS INTRODUCTION TO COMPILER ‘Multiple Cholce Type Questions 4,A language L atows declaration of arays whote sles are not Known during with one tte eleagiranse Tenn ne TEN. ur ze b) A compiler cannot be written for L, an interpreter must be used 2) A Spr cae en geen wien or 2. Te ol ofthe popocesoia routs eee ee o)rmaeoumtto nics Answer: (€) 3. Which one of the following error will nat be detected by the compil 2) Lexical error ‘Sy Syntactic orror [BUT 2010, 2012] ©) Semantic error 4) Logical error Answer: (8) 4-6 cule weed to keep track of currently active activations? _[WBUT 2012] ‘central stack) activation ) execution, 8) symbol saswer (3) ‘5. A compiler that runs on one machine and produces code fora different machine [WBUT 2043), te called 3) Cross compilation 1) One pass compilation, €) 2 pase compilation ©) none of these Answer: (a) 6. Which of the following translation program converts assembly language program to object program TweuT Z01a) 2) sseemblor 'b) compiler —_o) macro-processor ‘) linker sswer: (8) 7. Role of preprocessor is to Iweur 2015} 's} produce output data ») produce output to compton ¢} produce Input to compilers

You might also like