CD Imp Questions
CD Imp Questions
TpORTANT QoECTiOnlS
a) o O
Tohe%313
t3
(
)Consrott he, inimom tcte Automafa Jor the
Jolboing ron&thioy diagror
RE,
1wite all the Stops owoting o NPA Um
RE 1O+(O+u)o*1.
19Desiap a Fa foor iven
ONTT-T. f
belond-
Congoden the namma ier
EE+E /E-E/E *E/e/ealb
rigutmot dlesivation or he oinq
Oblin lehtmostond
atb a+b
used i Corppiler
9 Eplai Vanious pazno teciques
porSing and
Bw Top-doun
What ose 4he differences
BoHom- UP po sinA
e folloung granmai.
5)Eliminate LeftTecursion for
EEFT/T
TT*F/F
E->E+E /ExE/cE)/id
Conside foloaing
he gramay,
i s ombiguous.Eimipte the Oonbluigthy fou
Showthat
this rammal.
Poo1Se
S Aa/bAc/bBa
A-d
B .
and FoLLoW.
9List out he Rles for IRST
2
FoLLot forthe grommo),
FIRST ad
o) COstauct
EET/T
T TAf /
FE/1d
gronmaj.
table for
)Constqutt
predective paTSing
bSLL)/a
aEET/T
LL,s/s
TT*F /F (a,a) belong
the
check ohath
P ED/t4 t o Hhat qromma.
omo .
S Aa/bAce/ee/bBo
A d
EE-E/EX E/id
Perfn-sf+ Reduce poirg } p stonq i-idaids
EETT A c c e p t psling
id *id+id
TTAelF
P E )/td.
Desibe
b r jolouig
aomo
Set of items
LRC) table of +h at
9) nd conslstut Paose
diarau and
State
9-CC
CcC
Tammah.
sLR poSing table for JoluLoinA
a0 Corstwt
SAs/b
ASAla.
table foo e folung o n
2D
Constt he LRCD porSi
SCC aadd
Pahse he Hput
sting
Cd.
$L-R, S-sR, L ¥R R - L
Be
8) ConSidy
the jollaing 3omo
SOA A8/0/
A09Ae/1
0A A9
Consttt LeftmoSt deivadionS povse toee ollouna
foo follouina
i , 11 oolol.
O1o
h e Predetve dolowing 43ammal.
porSe o
20) Constut
26)
s EE+T/T TSTAF/F F- FA* /a/b.
UNTT-I
in detor.
4 Exploin the comept ofSnox dive ted Defliniion
different
intesmediote fmns.
1 Expoirn
A b s t 9 a u Surstox Aree.
b) Polish Nlotaton
EE,+E/ExE -E, (E i.
iemecioa ode tor the
o u ould you qenaiote the
5)
Corsto) sBatemeryts. explainy
with Fxamples.
tow ot
ith the TequiTed
intepnediate Code Seqment oalorg
) Geeaale
9cheme
Snan dsected transpdion
4 Ca> b)
X atb
X= - b
and b iS on int dta tupe.
0 e Teol
hee
here a and x
s Br
14hot ioa a
predure
proceduve ?
ules for declavadion
he Cesmarntic
14) Give
UNTT-
ofaPgro)
he Tun firne Stovoge cpriodion)
DExplan
mEHS
a)Explorn Vaoious Storoge allocoion Aotnies oth
an demesiiS.
Hs advartoges,
3) uite abod heop oooge allocation od
uRte all he ialds in AR
Define Actvocion fecord.ond
dedi).
5) Exphip Memvy esorchy
mutator in GC
the te qalbage ullechion ord
6) Expain eochable
Bosed algoithos
Balit moKOn Sweep Algdlithms
10) Expain
Code qerearion Should podses
prtparhej tut
n Mention the sues
DeNq9
DeScoibe Code eneacor
12
tooget poogram
are the fovos of a
1G) uhoat
detil
14) he fooms of Toget mouhine code tn
I4) Explain
Basie Block
7Conslsut DAG fo foluoing
T A+B
T2 C+D
T2 E-T2
4 Ti-3.
Sed regi&te alloatier
1 Constotet how DAG Can be
PHoceds ? Give Exomple
the OA fUr Staknernt z x-Y +X* y*U-V/%
19) show hot
+X+V.
desciptot and address deSmphs
is meont by Teaieten
20) what
*=fa+b)-(¢He)
code for he follooirg xp:
a) Geota tho
ond qso Copuate
its oSt
code Secuene
the folauoing
aa) Considej
i, Mov BA
MOV 8,Ro
ADD , Ro ADD C,A
mov Ro, A
peephole optioizotion 9
vodous meltod to hondle
Expldin
a) 9
instaudior
allocate vegisegs to
24) Ho0 to
1 Expan
te pootial Redondont E finaHor