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

PCC Assignment 1

I want a pdf to download

Uploaded by

Srija
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
16 views

PCC Assignment 1

I want a pdf to download

Uploaded by

Srija
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 10
4 Befetly explain ~ phases ab he compiley 7 b we. oasfecully hove +00 phases ot compilers, mamoly the Analysts phase anol Aaynihests phases. cumlyfs pase ceetes on Mntemedicde represen- “hon the given ‘ ource code. The tn 4yntxe — dlvected tranetodton , every nontertra| ommccmecna ori rere tam one attibdes oF omeKee edtade depending on he Wwe oF cath tedo Pe evaluated by the Semantic ywles assoctaled mugen = Tah wlth the productten wwe. e Tn the LEXVAL) | p ar r | Eoplain rch) fm the analysts - Synthesits mnedel of 2 lcoraptley, the vent end eb @ comptley banclabes o Source progyam frto an independent’ frlevmedfate cod@, then ‘the back end eh che compiler uses thie Yntevmedfdle. code aye * STS, ot, Ci, te te URed Zourre cede +40 machine code. ~to teenslegte! Viewsat palysts Seymore.” Annals , | Semen -nnalieic lrtemedtite code > the comptley diectly tramates zource code fio machine cade votthout genacting fntermedfide_ cok thon a tw et compfley fe vegulve tov ead, queue machine. aca ts very ese to the target and memory anocatfon. Ofterent forms oF FES ) Abstract Aeyrloxe dee : than a parse Nee and carr comptler- agt vepresentedtion Be: ObtC < é A st fb move compact oe easfly used ky fw 2) Pol&éh Notation : 2 sathe Notaien ; En the middle ot o e > Pre dire Netatfoo : In tok of oporsey” “4 En last ot operodev. the atven fastructton expression} @ fnstuctlon . jhe _exeprasston (aett)x/ 2 4dT , To, 7, | Okeuss about $0P} Eom Gees uacamct = abshact epeciifeatfon . r+ genevalfyctfon ot contect dee grammar fr which each gyammay producdten va fs assocladbed clth a 3Ub1, bi, __ by) where « f& he attibde sblafned dem Junctond. kemamtic rues ave fragments ot code cohtth ae embedded usually at Yhe end ot piodudlon andl emclased fn curly brace (Ly). Bet B-—> Bat Level =F4-val + Tveny Types ef olfiludes- These ave hoo types ot ahibudec- ly Synthesfhed Athibulas: These axe chase ottfbudes : which devfve they values 4am thely_ chiidven nodes ot Syynthestredd’ altfhutes at node ts vem the yaliies ot adtfordes at children L= By: Vol*Tvaty Semantte AcHens. Prin CE va) Eval = Ey val etal ‘ eval Tvl Vo Th: Ved Fv avo = Eve) = dlgHt Neseval Ioherfled sAihfbutes+ These ave the opie whe thefy values denn thefy povent or éfoliag er ME cliemc® fohafied| adtibules ave computed by value a} parent or studing nodes, Sg ay T_> tnt. T--S Hock T -+ doukle ES tid eae oe rk Semantic. Actions. fee , Lfin =ttype Cm Tue. tot, yeh ia 4 Tatype = Heat T-+ype =double Lf. fh =L-th Entey -type Cid. entry seth) Enter Brame oY.“ ) rhs \

You might also like