Compiler Design Notes
Compiler Design Notes
Pi) ps): S— CEbS | PEt See Sax {E68} iREReE]e ~p- teLse' fa - _g! — ese £3 b. £E= £+T ET] T—»_4a)b]'t£) a pp kemnve ain Accunain | k= Te! J w]e — o FEBRUARY ‘22 a _ El - —> +TEe! ~ _ To hte — - ; | _FEBRUARY '22 TO ne Deiat Hay dunes « ce . Con] wir te oon ve i rghactin 6 anvety 7ke kus e hb a proper. b jr s cache) Me non- linn rol Ll! a Pi ff, Pp grt a matched , 2. iM altunsbrius Aare. lO tan Aa 4, “G6 Ipecdiece ta ull Aléol a ae _ Fle ps” > Ee 8 (La fe k 20) = L! > Shi Je 6 - Aepuwntd 2 ony Apl cheat = —_No te ]oe BS At pecs?FEBRUARY ‘22 17 wk 08 » THURSDAY mamn ) an Cinput ) ; ' (60) Weal alot Ayrobst Cin adele) hat & Accept") Rive spe ‘Raj acd »: M coe pa eee pin olividual — pode fk N?- Hf Finposd Ci soe’) _ eho hf Cpe TO, a S++; apres eae a iff 409) oo wong i Hf, Cinypal Ltd = = a Tet7] 6 Day 019.316 WK 08 FRIDAY om — a rf (se) i (1100) Atlan )s aelun 0} & inf Lr) y 5 chy Aelvar_O; aicing fisid ond “fell ny tind ond He ny : fot - 74 non Lexrmnal fre® beurrinal, add to ansyyn © c - add le ann fe A> XYZ: Bagd of y- 0d fe (2 pe “4 a, Bot Gg ar Ikat —— i zt 6) desl a— - Afeot sgmbsl — AG mam s kes ~ Hf _nfhl nest bat (love f LUT £ tae Ayo =p follow F E + TE! Je —_ ____ SUNDAY 20 TFT _ _T = xerife fa C&)| id> ee als dp 24 bad CF) = sm tab mpl 1 = pitt (A= fC dy ‘ost (1') faye a _ * ate) fea ae21 iow og a -f fiten tel) = fedlen flo - {4 } foto (1) poe = $4, t92 Gubshle €- fiton 1 Y fo £7!) = fallen §07)-2 {+43} for aes re ee / Yas Fi —— ae «ddd» fe Lovshoucl The a wot? Na Bod _ etm : » loeriralt } b= plner trek moducchend ; “Hote, fh be He ma ke it th Ri me enn PeFEBHUAT -— sania WK 09 Z 02 “TUESDAY fiest pollo {6,44 fb, 2,04 { c,a} 1? {iy €} | 7? a ¢ 9. 9 #. Ast Soe bt) - Lo gsst Lose Z. a <= eae T Tam m i _ os ME CP ie pees Sleal prot == uch _peocscfi af int a ever ex dr Kp whan ah mache a. duviirr ee eiv5e23 Le 3 wKoo WEDNESDAY « (4a,a)f hdr——i wo” es Computer Doan re [EXT Construction of Syntax Troe for Expression The grammar conadered for the expression is E+E, 4T E4f,-T BEST Bot Coy Tod th T 3 num CT Constructing syntax tree for an expression means translation of expression into postfix form, The nodes for each operator and \d is created, Each node can be implemented as a record Er with multiple fields. Following are the functions used in syntax tree for expression. 1. mknode(op,left,right) : This function creates a node with the field Operator te operator as label, and the two pointers to left and right. 2 mkleaflidjentry) : This function creates an identifier node with label id a: Pointer to symbol table is given by ‘entry’. 3. mkleaf(num,val) : This function creates node for number with label num and for value of that number. CEREZEEY construct the syntax tree for the expression xy-S42, Solution : Step 1: Convert the expression from infix to Postfix xy*5-z+. I) Step 2: Make use of the functions mknode(),mkleaf(id,ptr) and mkleaf(numal Step 3: The Sequence of functi Postfix expression xy*5 ~ z+ ion calls is given, . Ps=mknode(*p;,po) TECHNICAL PUBLICATIONS”. AN Up thrust for knowledgeSyntax Directed Translation P4= mhteaf(num.s) Ps=mbnode(-, py.p4) Po= mbleaf(id, ptr to entry 2) knode( +, P5,.Pp) e +y-S4z. and le consider the string vty-5+z. and let us draw the syntax tree. Pointer to LN em “= ay EH Pointer to Pointer to symtab symtab for x fory Fig, 4.2.1 Syntax tree The syntax-directed definition for the above grammar is 2 BYR below. Production rule Semantic operation yum.vall) _-mkleaf(num™entry for z entry for x y Fig. 4.2.1 (a) Constructed syntax tree entry for As we have seen that in the function calls the pointers to various nodes = generated. Such pointer are p,,P2,P3 and so on. A synthesized attribute nptr for E «= T is used to keep track of these pointers for the nodes E and T. Thus we get npt ptr_entry, val as synthesized attributes. GRRBREEY] Construct a syntax directed definition for constructing a syntax tre assignment statements. Said: =E EsE1+ B2 EE1*E2 E>-E1 E (El) ao EidFEBRUARY ‘22 28 vovcn Bu ~ hprttx iertd tio Jp —> Swrlorhee — Seperdamg f vcleah: ” pep rk, Kyrtes hee 4 tack node ——______— Aaly: i — Bemvntss oraboahin 7 — _— — —————— amnctetid kee | Accocted re ft free Lynty bias cd Dypvbdn 8 apelin ] faa hex UX Lin Vanerabd . smth] femanhe Aules ae mn. eo RE Eby br be) —_ Al br bn a — Ay 8 mama Jeb = spenil > Aherted v ¥ wn 9 om - tahun led «th, ow ne NAA 6 Om —— tha fp eommae grit a a RUG [pina ap> ACTION PLAN yp 22 aN Se | , 8 eb Je Advemonted Gremmar hh billen = ons ar khoe ta Afel Aci pie! . - tCamesete GS ayy, SL teary 1 Tak / te [Fb fp ao le)_fapl- _ Noy Wtordab a few focducher tile Re imemls rile GaEN __ print | (hs vel) £ ee BE Vale re fyvaly T-44l —E Vober 2s f+ vval_-7- val pavels= J-vod G- Nal t= I. vel # Evel Wav pve 2-H veh ke vals sto leeval Ie = a lame *3 MARCH '22 O 1 DAY o6n 308 W TUESDAY ~ lmshned Va Che, Cupra doer # are Keb td oo thee prac’ eee 7 i oe Eo ZN j ae + a in ae - IN F 5 6 oa i ] | ant oh _ yo by (A) os. 8 pad _ a saw ret tee Ti i ' _ eth a 304 t-vd29— —__—_— val ~ 30 he $e 2 nnn: ree 5 SESE — =a jeune a2 i 5 ae lexved 6 = dpkg - ee : / a 29412022 sapcnzs DAY 061304 WE AO. o »1» WEDNESDAY. N; - er chs Ky JevaleR.o- a oe publ \ SN yt 7 7 a Fate {ux Es valet 2h. — I ae 7-1 Art, tyes 7 ‘ —_—~ Eoval= 4 “pavet = ab a Tal =FT ete a AY —______—_+ vals 4 ——f- ae 1 “e —|— toh lov! = Tr aMARCH ‘22 Ox } Day ansana WK 10 THURSDAY 0m Aton vi~ a fi me 2 as T 7 M\ aS fof £ 1 } c ot. } N geval 19 7 — a F- vz) 2Oe : bvelsz ane 4 \ Tae IX oT ee der ovals $$] ) ap “eal F —— dipl Aeeigle3 dat bedMARCH ‘22 Z we 4 Bue Affe - atts - vf A rvs b donl on. porent [ drbhe ‘ Af. tnt 4b, c¢; ag Ke “hs ae =e 2 eR as Eee — a 2 a 4 oN wit Liin: =1 op Fee lnkpe \ _ 9k —_h— 5, td Zin ie Ser ce _— a e— sig yp PEMARCH ‘22 SATURDAY «# So _—__Sv_$ 8 207 es 7TLl! fbi 7 ind tae: tae toed ehas Pte! Li, ld Life = Lio, td. ender pe ( ‘aly — ey Sc eo a 7 ECL. _ — erbertipe (id= entey, din): ° " oe 2 4 ee eeMARCH ‘22 —_ m isan 07 “ damug 9 “p L Aargr the Ue tow fpr f- Ike i ‘ E> & +2 & ak, #42. Aue Serevenbis 2u-le k= Ee E, — kevals = Eye val + &y, val E wval- ko k«k ap ved Ke vali: £,.val a 4.4! — ee oe oeMARCH ‘22 0 8 ony 067 290 wc TUESDAY oe Ercdatie— orden einen 480 wd b weir bemsle bi oe depuitin *MARCH ‘29 ~rweonesoy OO inde Pg Prk — pr hee f The Pep eatin 1 fb nay 8 42. Weg de CG botat] ,-7 eer [7 Jala) num: = [op Lefl dopht) : (num, vel} — = hewn KA 7 5tZ pest, aya ee | Gee “ele Bemothe Auk] Xtshnks: ry The sas aeweleat [x “pk entry) — Pl x ~ . an = ¢ = kent { ary 2st oo fe hy ty eats )— ?: ; — cs _ en dd — Fi 9 Pz) — 7 fF eae Jode (% P a wv (AY) + a PF 5 be, (maim 5 ee Ni f= z ) —— - mae wt Ps, PA. —2 2 —> Pb Z ft fo £n ee 4 : 4 a = sachet be) “> P fae thee. ~The et, dam “Re Sp _—— yo os 5 - — —_ ——- — ___— Ee ——MARCH ‘22 | 0 pay 0081296 THURSDAY A* Ie a © Nrjle The Solis - diss clad drichin fn The jo » £OLtT ofe:2 flv a tT. E.nphie AiwNede [4,2 ph, 7nph) ka E-T E- np. = (£5 bat p Le hewnode (., kook, Fe0 Psi aS a) Cd , a ” a/ Tot phe navel (id, hi ek) tvening ph: = nn den{( herp, muro: val.)MARCH ‘29 Ae mee 11 lonstrud The expr erin g CFG ay Bikes — hee ry ke gree ites Aanggrage ent a ipa ’ xin ph Sap typedsy int — oO uh PheMARCH ‘22 12 bay ort wey SATURDAY om : favay. array (17) <4: ar inf al ao] sana oo int ) povducl? Lift anvnatiye. 43. TXT. Alit. slit 2 f ———— Char nlp: took mM} Yat Lol : — Atmel (Cnamex (0-4, char) x (10 ftod) 13 SUNDAY w4 (4: aa uct) prindis: — fost 40) pointer (ptr) wa tvonches ye Aur(rnd a, int 5.) inex trl —> Prk |*04/2022 ne 2 MARCH ‘22 DAN Orb 207 WK 12 me MONDAY fun ‘Time Environ mesd age exeeheg «tage Pea am arn iG n Ae rani) pW re ch bak pga oe Tile ~ The os aps maps The _Leseal addaenu 2 yf The As bila ALM — Bove. mee SayeMARCH '22 15 ister = — fury J ginaceted code a aoe Sle memory al {, Nhe dala obfach “ nin i a t > bo J te Fh Ad cla h pt vo phe Ane “ane WA44, —» dail memore Amdt “The unten cll, When There As ae call, Eee current exeedisn G anuplad ytd trfomelin about The a t the "ed — terse, m the Ainek meh or nn Atrumen. pall poy aft inlipwn prin, Ke "hen ane! Ate f pagielats pooges mm tonal, Acwuna > Heap sh 63 Axlin trle ane shred / Dt, bie J inne und, : A prrogtn re dtred hee. = Stock, hag > Nef fred 7 & ae memory hn forle ftinae +982022 + MARCH ‘22 » WEDNESDAY | 6 “Bliaye tek Aha ie $< = _—— | Sy L J 1 Stabe Atack Heap slate Atoca tet: — Bod te 4 cat _tompil fine Bad la eee data !are fer us the. gee _ . fie “Hhe_addun_at beck t Bra aet ! ele can oe The dete te wt me - = Eg: For TRAN — Beta Con be “glene en a ae — Hecate a bj lt us Raenw Oo 4 a aphle . — es Poowrdve e calls ace not An ppested — Shish Mlogcatiiy 2 (0) Condit Aleck 2S ae Lo. - Achyation he gina a Manali peer’ J ~ a im pepe ioe — bertid Aenea: = Xirnictechon > Alew Sta dus bt “att ~ potilensMARCH 22 4973, | 7 pay 0 THURSDAY « Lhep Allacehin. - Vals Z, non Lreal verrahtes herded ofe ex teuhen Cyene net be Ahred on dhe Atak Premany ° valves are Alora mn heap more, od “as om Alock rf mem Act, rhfech - “ fr Poo Ounbtiraticl anal fs Apt ma 5 mocks Orion le by - hhen The activation ends mem inked hia, the Mglcusna tas pat nad Dat a — Best — — nes _yrd , ——— hel fb freed — Aetivatan — At - 7 yn pt ty fenMARCH ‘22 eiisee mo 077-285 a 4 8 - Lamporances * Neceled | a epr eonion rion evaluration . - Kocal Vasatty : Local -t, The Corrend exouctin ~ Gonad mochine Shdeos — — lentst Ale = Peias rtd. Aah _ Atcetd ¢ the. tally - (Dynamic. Lait) heen hehe - Dptinal feld. Han the nonlocal ae Ur_other_al tivation \ Head betel Ask) value: Tbject thet wists_beymnd org le oxgn eon _Avalue: lem ip a be. Values ane. te fhe ~AcY tpg tnd shore he wel «of peli perenneMARCH ‘22 1 9 SATURDAY ¢ 2. CIES nec! Cail by adds mca 4 Ww ~ we K-value wred ly tke cae Act vation — Values jf the Aactiel pew amelos Ate dys Gl/ ame! = a ftediae. Reateol Like macro. conto ane encloned | petoocthers te Ep tig © AOE cee cit 20 SUNDAY ae Value £ een TEEN oe sp feed — eae {topo m te—> Commen Le Coule Opkinrtsa b on aul 2x prerion Eltninatecs ~ ty = ath. Carha ( +b) |. ar teth ad mm deme Comfohr — Cavprtu rnb arp mly me: enn a 7 lated Atl 2 J (5400 eel ann fone FOd) PB wed (_Cotessectat” pe) a Dead - tele Ekianaten s _ Reed ttle Ehnination? Ehrink she and inh. not ry. Ihartons « ney sy bere! ) r “Te +] - f ' he “ys a 23 ¥ zel 13) | yelue Jeonfl @ chfovd Worl vad 2% mam vt N J Mea ’=—— a Lop Awion . | fer 4 20, dans fat) ‘ye (pe fered) . . eLiTEg* pene) , _ { ACEI SI J - vs 3 \ i" (feo; "en; Loa) Cone bane the ° | t Cfeosyen: ptt) fer PEE papeijend — —* predeyJ- AGI I- ALICE 5 Decade Aga ANY Lv J fr (iro; tan, iat) | { fr Eppes (2 nif) ACIS I - ecsy d+ DrIjyy SETC] » ACIRI~ FCI T } J hep Invoviomd — toele modin! hkhole Cy> ro) { qerp nad wad Boren ' Leva ber mat f 2 np mewer telods Petry ) ome lof ye } reget+ Ahersh Aidethon | Ne (, xe aad ame ie wv —w 9 2e3 e i veep Ahft - Favstt and fs afer fy Clk Mtl, 4 Kan @ illo ae 7 | “ y Con be 4! GQ Mr a7. as anger) Series (1223) -% Ss é a, qn} > d* a a dat _ ant rue nef be wed, C prstedin oho Brel be de heebes! He Corp lex 7 Unarcela bfo owe Ch minadin . ne whale (Aw) { i (net) € pte (xB me"); tk,a lye f pete (“ab zuo'), In ot; gat rte oe ve Mr de — qui. tele ¢ hinnelan L tele > sar ale oe ud ec Trltat . recce tha Oe 5 Leahel ft Arias ( / oy owth id rt hae a miller, than frulond ha valine 7 La ee » ro! top boty Mh { mt a tbe mow) reign 49 tb) ‘ Int nob =". poy (sy. | xxx): ay ao x) b. ‘ Ath (asx)> 3eas \ ~ | Laat od) -) nlemeditt “f- Ee | ede ene tal Aurqrammer wilis JI dank aly orthn Apply sip 2 Droicla Fyre tt hab ephoiaatien TT: spre perp “A heey Opbminins by ples Minimum Rice eode - No wnteeek St. codes J dend trdu . EVininate torenmm Abeta Cocke movement J. 5 Shee th Ardu chin « 1. drdhe Mahia: ! 2 3 4 © Expres fly Kemasm wncharged vane fle Jey ton fe med ont- . se a-b n= a-b; tea : ) > hk (r2n) puro 2 Mums CCT: Aum = fum+ cliL jnN —— Ww 2 bduchen hy *hany It binduilen vastablas Vacohla nhew sabe Oy catia o Called —inderetedn vara hte = Vey te Kase ancninsin tna tén vara a - Aus sfunedens can be Pre plemenbol 7 OTe Shue. v Postar ef “fener shensth “pot 4 oa 22 Eye fn (isl; ie 505544) £24; poe ee = for Cizt, 12505544) Count = t; t -t44; 3 Loop inate ad Com trobecione oapule The loop ace catty. fo live, i< 10s j +4) = a/b: kz f+alp: = th five; Nero; j44) k= j4t:r Koop _woectle'y c No { jomps And lub tam }x arduad. i 4 fee vad whale (i<-1eo) wba le (12 +50) => aCiJ= boi: i a 445 i 5 acijy- bLid: dar, é keep aan oo doop (ord - porsilnk lcs f magne Aap plier j2n; (at) qin (iz) ;1< mam;ity) folpee gorge ALiJ= 10; { atid = afiIlyJ-n: } 5a > Ophtesizafion ol Bavic__ Blocks + Slo! _oplimzdlroanm - ——? glabal_optimizahon, Global “ali kasic block Naluce the Vaviatlen ——#_Nicét_N_otsriated joith oa h Sint .S witfiin nite block * ——t Node te latcled — by — sthe_ chen ct}hin Oppled ot s —%_Cokoin_nodeb ne _oulpuct nes > uh Values tod labey ‘iy anottes block gtmy dor pen Viton Aes Rabe Sep dpe tony eae Uy I-00 as Pyrm tt 519 —ati§ Je re (1) th lés(6 goto )~_ nn ee we 49 AM" tn gee bane - Hock —7k sep . ak borders: Puts — — _ ite Soar inhi jo bene he fonget oh‘yey! Ape to eel pe j= itl 7 {4 Ves ice goo} = oa L | ee pt > ed phe eo ny a et ie Blocks _——" Ban pie ee eeNee ite ty iy dia Block ¢ Mwdblalob n_tto— angina) orda+ ope jnat f “Roo_addtttonal Nodes | any exit fee prom_Block B to c B= pradsor of ¢t ft —4 = a |, ~ xi! 1é- to > Bay a | atts J -to b= t4) if_ic= to goto tab—p-paealideeg tate whe tice?eked Aedes a etsy Bowe: Dortanatine stakes Asyye —pvalepnabseNabeyy) 9 — 1 4 — Lyivar an vaty evod = Ariat y= Nahe yya) ee athe. Constant, fxm to Ey ity ConstructionZ : Troplamértatios Stops : 3¢ The node Opa. “ys tree vb koplomantud obyeds with a Suitowe_No of tel, %_fach objet will have Op feel. ———9p_> abel oy fo rete. . —#D 4he_node_ia_a deat, an - Additional purction _ ald —holdn
. 6, tT] nae = row Neck ("+56 ate, DE Ey TE pals raid. Wael’, nat A ) Df» T_|Ewwoke'= Timodea ; qT (0) \T- pede = esmode ST id__|T pate = pau Joy (id, id.ony) 6)_T>num_ Tenodk_s naw leat. Crum , nue val) —_* — ee— a qortod Ke reprwonte tho Nabe — off tide ard 7 poe (> _Pi=_row ao} Cia, enkry 5 dp_Po_- rev looy nur 4 ii)? = Nad _Node Co! yp P): hp Py = Tow hoo, Cd, onkry =); CV) Pp = neud_towg Nod, (14! Psi2h);) in __ink Steutt (Chame x Co, Ftd), a taka pont) Type_sepesion, —________ (ma —Sher_arrey (041, 9.4, hud) —_Optimization ef Panic Blocks. Boxe Blocks: bpray vepwentalion oy iP ™ Partition & So War Ce Of Into-wrediatre. Cabo thbo Rane batter: hase blo tks ara __tnotimal Seqbersca> — anscuctive. Ree ~ addr Inetruchons wit hose —_proposfte, —~______ G2 the few of _tontrel__Can onky enter the has eie_bloele_theaugh (1-22 tno_furnps —in the. tjidAle of the block dh Control will Leawe the Hock wrth owt halting ot boned “eeBeen sean : fe : tm Tropa gun ol epliieain —— Compiler must _prosarie the Comantig Oe ret Wgh leu dae =.deudure actor 2ypaniks into aM. 9, ta -lewal_actltrnctie. per oben —-4- Compalation of 01} 4h_otereant qa! mabe A qthe_ong nal tow -lerel_Sercantit {xansjomnatio’ i relundordy —is_avalabe ak Bonne level — Fgreas ecorpybe —sara_Naln —> sik eypat oj wrlng be hifh lend Jorgpoge zee ShanesLie ff air Block Chrevediataly joins Ih tho. gigina) order —o}—the_daat* “Wwo_ additional Nodes Lanny _f-exit 7? Be Meng — Elgon > 2 Fan is_a_tondi tora or — uncordibional_jyenp from ro—erd_oy — Ploce_p tothe _haghning—4—_block_ 22022 PU spay D4 Wee 05 principle Sowrces Of Oplinjzedion : » dtecad — opdimization- ln Ve Sarre Borie Blck > Global oplinivalion . (foros orang hosic Habs, while Pp ™4 Optirrzation Whe sercartis “os re GARDE shold nob be charg . Compile Time Exaguattion shying. Q—Computatioy fro sun ime to compilation ¢ Arras Wo rrethode /. ~ Sralding = Computation op constont_is dore at conte Utime Ipobaad__O} tun tirre. prompie:_lergih = (22/7) *d emp lag TE - Watton at compile. Hire. —__ Nidua “Pe Natale is sepiaced ord Semypiatton 18. done at compile TierAU WEDNESDAY ( Wor Shy o y Nample 1 Pim By pty we Neo = Pik tH 1 Panty values are Sublitvted and + cp ea will be Computed ai © Noh, The tonya ii, wth Coreen Sub Expression — alanine _ Carson Sub Expeusyon: Expoossion Cppesting Sxpeabedly In “He Program which 18 Compuds* Previously 2: ty yal —— & - alt ——ty-= 4d ty.=-bltaJ tos takty crhim cad Code. t= Ux) t = aft). tyr ble) _ be ba &ty— ——. 9022 PHuURSDAY LL Week Os did Copy Prepagtion : . v Use Qe ae Vownable — \rstead of anclhey paxrempl ‘ ms Piy amas LET aa, optimized code Ama = Pik WET, oo le Mewerent wo _quals opcode. movement do wate Pe cioe of the ted. Ger to seduce. Space xity.. 1 - dy yO moa C2. Lome ion (pequeny Of cxeustion) Of code... Cie? to sediue time Companity : Braga. for (i= 9, ica105144) 4 Riyxs, ke (yrs) +5 12 Frpat Aittay Wook os eof Imiced cae jortles’ isto i4e> q Xz) kez +50, J bate Loo nvaniasit Computedion - is dong. i Moving come. amourt 1 take outside ho 2 ico and Pass it t ae onbe inthe. a -This is sabe Calas "oh mation, Example: tohile_ Ci Max =|) Sum = Sun +aliyy optim zod oe = Max ~ oly, while Ciel n) : Sum = Sun + afils 5 }SATUP DAL DY WP? oo, _ w Seen gh Radu opetaters fe higher Strength atan be neploted Stullgih CPEMayors - \owo? Example : jolie, ie=50 jt) tount-=1*7, __y optimized tode. mp = PME iecse, i+ 4 SUNDAY 50 tount =temp, ° temp = temp ty y opal aa rrodutton 1 ail \ to aim "1 pressions: - He - 3 rePIN 4 53 MONDAY weet 08 ew Lea ene. Ww) Lad A : ; Vara we is weal os mt used, pan he Value Uorhainey @ wom a “tad tated Guth Nariable 4, . ~ " rlininaht oP clin _ is}. , / ; , 7 Lsitio 7 Ex =o. ye 45 { Arete: =~ ‘ ny 7 ’ “s a 0 s wa 74 ‘ 1" , mete Song ets aha 2 bun BayTUESDAY / February ® wi) lv uplimication \ The eS a izdien tan ke sighiy P any dow jn Wops ay Te prapem. In Loup uptimization , imization 1g Parone anrtet oon the inner Loops Chinese New Year (Malaysia /Sinpapory Methals = > (Cod. motion > Tnrduchon Noable and Sesangth Seduction > Loop InNasant.. rethod 7 Lo vesting 7? Loop 4usion > Code motion. B & tte technique tp moe tode outside to loop. Expressions whose. \alue semaine unchanad Should be placed just bojore. the Soop: Erarnpe « while (igs Max-t) Sur = gum +a.tiy) February20.22 ~ WEDNESDAY By, eyneve New Year, Day 2 (Malaysia Singaparen Wet Opimized toe | Ne Max -l) OR while Cig snd Sura = sun +aliy: > Trduction Nemables ard seduction in Strength Tneluction . Vardable... Values chan & ern tire a Loop.._is...axaricted). neds ; ty ters t, alt iy f2¢10 gore By Reduction th. gtren Hi grow... Stren a can. be seoplaced by lower qth opera ~> Loop Trvanant.. Method — ex + dor lteo tele do bed ape basizalb, ond3 THURSDAY February © oprozoll dol - tiealb — in tee lo bey n end: —> Loop Lrrelling : a Fe Number jumps and bests Can Be Reed Sy wen the do. tie, Exomple: im ict. thle tile). : atiy = btid,_ l+ty 3 “Ptevizcd code int je 1 while ti~eep)2022 FRIDAY 4 | ati}- bid; itt) , > Lop jusivn vs Loop Jamrning Severo) Loopr are moxged 4o_ore loop. fxamplo __ fox Us; Wa 300) \++)- a ~ alti tJ zal) +3, i Yao, i <300; eet a tid = -btid+4; — “ule _ gov liz 0, 1d200; tt) 4 atij -alid +3) td - bOd+4) y on