Recent questions tagged compiler-design

5 votes
2 answers
1292
How to do this type of QUESTIONS?Consider following grammar : S → S1 + A | A A → D – A | D D → D1 * B | B B → num The number of internal nodes for the parse tre...
0 votes
1 answer
1293
1 votes
0 answers
1294
HOW STATIC MEMORY ALLOCATION MANAGES FUNCTIONS CALL?WHERE ARE ACTIVATION RECORDS STORED IN STATIC MEMORY ALLOCATION?
0 votes
0 answers
1295
0 votes
1 answer
1296
Activation Record can be known atA. Compile TimeB. Run TimeC. Loading TimeD. None of these
1 votes
1 answer
1297
IS EVERY LL(1) GRAMMAR LALR(1)?? I DONT KNOW WHETHER ITS TRUE OR NOT?CAN SOMEONE EXPLAIN??
1 votes
1 answer
1302
0 votes
0 answers
1306
What is the difference between data flow graph and control flow graph, and in which phase these graphs are used?
13 votes
2 answers
1307
1. LL(k) grammars have one to one correspondance with DCFL's2. LR(k) grammars have one to one correspondance with CFL'sWhich of them is True and explain it bit clearly?
5 votes
1 answer
1310
Consider the following grammar:$S\rightarrow0S1 | 01$How many of the following are the viable prefixes of the grammar?i. 01 ii. 001iii. 00011iv. 00S1PS: given answers ...
0 votes
2 answers
1311
$/* abc */Printf("what's \ up \ \%d",++ \&\& *a);$
0 votes
1 answer
1312
Why in this I6 and I7 are not in same state??
0 votes
1 answer
1313
0 votes
0 answers
1314
0 votes
0 answers
1315
0 votes
0 answers
1317
the need of heap allocation at runtime is a) to support dynamic data structure b)to support dynamic scoping c) to support recursiond) all of the above explain?
0 votes
2 answers
1319
Which of the following is an advantage of $\text{'Triples'}$Statements can be moved aroundWastage of too much spaceSpace is not wastedTwo memory access per operation
2 votes
4 answers
1320
In questions like, when asked to find the edges or nodes in the DAG of following expression,a=a+b*c-(a+b)+(b*c)do we also consider "=" as a node and its related edges?