0% found this document useful (0 votes)
11 views

Cc Assignment

The document appears to be a collection of exam questions related to compiler design and programming concepts, including topics like dead code elimination, LR parsing, and multi-pass compilers. It contains various definitions, examples, and comparisons of different programming techniques and structures. The text is fragmented and contains numerous typographical errors, making it challenging to interpret fully.

Uploaded by

gbhushan175
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Cc Assignment

The document appears to be a collection of exam questions related to compiler design and programming concepts, including topics like dead code elimination, LR parsing, and multi-pass compilers. It contains various definitions, examples, and comparisons of different programming techniques and structures. The text is fragmented and contains numerous typographical errors, making it challenging to interpret fully.

Uploaded by

gbhushan175
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Campiler (onsbuchen DELUXE

PAQE NO:
Qyestion Papes - DATE:

Q17Attemph ant Eigh) of the Folleing (out of Jo

machineand
produce the tgTqet coce r anothr machine is
koown
(bst the two clces of sDD
clas oF SDD
O s- cttribute
aL-thibuted
Desne the term dead code
DeeCede s the ede chich can be ormìtte
rom 9 progrm aith sut affecing the regult
(AUst tbe cli Fferen typy of con ELics that occyr
in LR pdrte
Th tbe LRpse

) shiP-duce ( SR)
educe- educe CRR)

(e stote one dfFeence betweenannoted Payieee


and dpendenc chroph
OAnnoted ase heeiAnGn annoted pare ree dplays
the achyaal of ahabtes ct cach node n

ocprden Taph D shous the elation hips


(state
shifHng a .Fttkens in fee
Atribte
scanni F
cutpustThe What DeFne acceptthe The opbmi2ahan Thye tLihest
sihaian rue ard
Tye beod
tode Ce
is | dyctionand
tqyency
to tem
be the technigues
r
utput
priek tchniqyg ec
S
ase, This Athrì teducho
Fase pasAes
of eliminatie
an pYocessis Lseicad bute
shEA-shif infrmation
-sensitie
Contet
LR Nhen Sub-KprSIC9
(ommcn
PerTeY Anaysis) ra io
also mmaY to
code
(onÀlict stup
CanDot kno iOcode aphimi
pamng
PAGENO:
(DTE:-DELUXE
do atios
eo(ount s
and
Dot

KLoF
(snuted
thart dirahon
lefimastRx to Compute
dcriraenmost right PayU LL
SytCa)Sitssa
with
Smbol in
and
Lis Gytand
tp-doy
secend
fY
u) left
aa L folla
s
fhds(ochd
er
iaion
mosf the
with
fllowioy
in
rtsymbol botHom DATE :PAOEN0

-DELUXE

te
yp
(S): mgn
(C)
voter vok Cona
Aerys
ob
ont) (
(4) Oin
eniay Vaidak
coliog Accys cHdenHcdi Sto inpt
paswerd
ncaphen

hronttd
Vpdatey
display
dei<d
apie

-OELIE

bixchen aDefiohun (e
ahibutey
Feate
EE+TT

Recuie AHributy
child
Hntheyid
athributeg
gde
amatd
Desen and

paid
bam
PaL
dosnarÚ!
paured fm Lnbitd
A
(RpP) Hibte
DTE:
patat
y teied
the
qran
-OELUXE
PAGE
NO:
DATE
Cy)
(«-)
c-z)
followcT):)
by(atc)+
(att)*d
S9AR)
T
ST ’
SI
TT
not
DELUXE
NO:
pAGE
adranchc qdvance
c
c
adrance Telayh)
¬deith
fdash
('3)yag
9b
DCLSE
PACIEDATE:
fach
Foct
one
any
Q-sAHempt main
C
olle Cpaatoropapesaf
4bepirah
-DELUXE
the 2. aprar
ap
(apm,n.
opeanels
(latb)m
Qudrwle
S.(op(utb
(m-n))
(mtn)4
fmn)
and opxande
aibi
Cm-n) bt)
1Cap, opapeaty
tiaperoto
r
triple
Ssisn. Cguadruplesi
b)
antelt Ca
(h
-DELUXE DELUXE

DATN
DATE:

Gushen Papr- 2
each half. so erY time lock abedd pa inter cheoky
+his chbaracter and tth<n oth haloas <

ACC(yet anothee
compile compiler) stat (eoEy
Annotd paye Tee
pavir Gencator ADNted paye

Yaage

DeRneCors Compìle compate th tate


ACroe comeiler isa ceeopeer maching
Chjecth, y anst hexr what is besic block
Coe A baeic blo ck a
seguence oP_ in sha chss
that cne eeected to ether ithst any
() Us bayic cónrol Flaw chaneaf Such condihehd
block branche lo ops Rnchon calls
canapile im2 erallahion
dead code eminaion
poìnte ne characterohichfoken is foune
quency 2dchon Dt character is delimete and ioce elimeter

(Cetcct LRC)Tkm r the fsllainPrcha


whatis Senh nels
1be LRC) tem f fhe rdychon
S’e $
leiroonalyii

Gcode cptirniscian. ifashiok btp-doun paningand

Top-dauw
otheied Hri
daiyotian.

attribte An
inhanted itorhining stort
-oGLUXE JPAG NO:
LuXE

can be
Hou t eliminate
leEt tiuriioni a
tsmincy mbol appcIA the
S-)-L=R
eftnet
t-).R
215minating
a2denbEy the
that is teEE Sl=R
Hhe poduchien
an nonermina ymbo
follos Cs)
) Replact tbe
Bep lac the

L*R

gMenhd amna
5 S - Ro

L’R-R3

R>L R
DELUXE
-pELUXE
|PAQE NO.:
DATE:

R
3
Ol The nye sechk'en consJt oF nde i nin eyav
Sapsysion frmiith caxpending ach'on
2
accept
3
S4S a pten kan achon separatre b whitef pace
enclosed withiD byacg í

The procedde echen- fur larg pagra,iF


Since th tabethe betes to hareppeahng Code in a ceparak
-enha nchan (2=) in the
hof be afrc ted.
Expleo
Ank 'ram pe ci icahion. uncionS
lex
ibray
A
andeach tokentheftE
the sfxt)
dehnihon o dec lqrao

befre min ang


rceduu witen io c langage which
definition sec hon 1t canist F declanabonl
-DELUXe -DELUXE

S a Ad

Gofo (Doi s)

folls CA)= a Gotu(fo, 9)

A -)ce
S59-6et
sllaaing
1K(
toe aikn qrammgr
check shethe
sc
3
Slo

oto Ci1B1 6
1
Aigumend.
SJaAd Ro
S13

o o(j, B) 12
3

tRt) Tee.5=5$
-DELUXE. -DELUXe
PAOS NO
DATE:

Cornpi can Had the soyYe


|Co the poss I
q 2

B’cel
theatp flk
n the pass I compil& Can Kadtbeotac
YEpogs buil tee
aduced bf
and pufurm the cyotachica Gnalysis
A
Dn the pas IT ,compilr con a 44e op Sle ur
2hd ps * chck that the t e Alous fhe dey
aceçt
2
S
Sg Soutce
Sls
Si

SIR

Cod<

ihss S Reduceduce canflit

Advantaqe cf mlt- pyr compile


lhat is multi- pal! compile ) Epln dagan
with is adrantaqes k diaclantage
ipace than single -padi Canpiler
mi-pajs campil ex is a ype af compile that
PoreSG te Souy e coe abrta ct yntax The wde scope thsara ak le to thye camprls
dlows better (ode gensahion.
-ptLuxE

Compiler:
f mwh-pasi
*pisadyontog pas
each make th camplia.
ads and
unty
an inte meiatt Comeile
Alehich

ccy.im cenLuming
jtuwtr than sìngp
2- .Ctmpilg
Themulth -pos
Compikr
treehrthe (F.val c4)
and chrwthe annotecd parie

En poot eva

E E Vad Tiyal
(E val 3)

the rect nodeL has the semanh'c me Aint Ewal.


The node E with raly 1 ha the cmanh uk
The node Euith vsale S has the semanhs

TEva 17) the oode T with vaJue (nhey the smanhc ele

the hode wrth ral ue 3 hayesemgnhc e

the node f with ra ue hes theSemonic


-DELUXE
PAGE NOs
-DELUXE
DAT: IPAGE HO
DATE:

fo)locog
AHempt any ore of th crau the sperotoy pxcedenre teable r the
llou in ammayi
E E+ExEE-ELid
ngsnkchniqueith an eeampl
ophmi2ahion
techoigyy. +
S Code +
Compile tim evalyaton rub-prusons
Dead le,de elimoahon
6qyeny educho
shngth reduch'an
erraaton
Compile compl
Durin time achan
eareecuhon

Some itategenH in fhe qren, uh


a hme ane

6.2.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy