SlidePub
Home
Categories
Login
Register
Home
Design
Target language in compiler design
Target language in compiler design
7,203 views
4 slides
Sep 24, 2021
Slide
1
of 4
Previous
Next
1
2
3
4
About This Presentation
Target language in compiler design
Compiler Construction
Size:
868.8 KB
Language:
en
Added:
Sep 24, 2021
Slides:
4 pages
Slide Content
Slide 1
THE Torner Lanaua ae
= Fawn Biasity À with Ihe higéL machine aed its inslouction set
IS à poe seywisile for designing a quel code goatatos
Here, opt loque (asset code) fora Simple
Computes IS discussed which is vepwesentative of
many a tes machines
Al Simple Tasget Machine Model
Dus Al computer melels à reali mire”
with following opesahions :
Load value x in
LD vit er)
= Lod Operation ip 5 BE a)
* Du %
+ Stowe Operahons — gy Kr (She wies Y ey
x
, Computation Opexahms — ADO /suB/omn pw
+ Unconditional Timps — BR L (Branch fo lab L)
+ Grditonal Somps Bite 4, L (Bach à set
F Value of ¥
(8 ha au)
Slide 2
Pia
Machine Instuchons
LD Ry CE)
ED: Rie 2h (Rez 2)
SUB R1,R4,R2 (Ri Ri-R2)
ST x et (ask)
Dt ont necesa dy :
By o de ma Ur we all operaron
m winum
™ Number of operations
EPL RES (Rizy)
SUB RI, > (ae Rz)
Le UxeRı)
KeRı
A, Get an away value to avatiadle
Cap "Conse oa aah leed
fe 3024 EB pyle values, The machine inshuchen
ale fv boofi) >
s 121013
ere 34% Lo ari (aie i)
MUL R), RIB (Ris ates)
us Lo Rr, a(R) (R2= alas)
ST by RO (b= R2)
Slide 3
Store à Variable value inte ae
Mee ere
£ tomple.3
Poe ;
alj]=c
Machine Inshuchns _
LD Rie (Ri=c)
LD R2,j (R2=5)
MUL R2,R2,8 (R2= R28)
ST a(Rr2),RI (ales) = 21)
Craw pe À vey go L
Machine Instmehms
LD RI, x (Riz)
Lo Rz, y (R229)
SUB RI, RI, RD (RI =Ri-22)
ny
A AAA
iF mens that ey then
ge se)
Slide 4
Take Home Exes cases
O Generate code fos Follosng ves address atome
uma a awh b axe song whose elemects
ase U byte values.
D Finidelemdéque (1 tue od | Le que chine
+ cali] es Ligue
Je 56) re ah] %= afi)
afi - y 3=b[3) 32 a]
aller 22108) abJ=3
© Genet code fot the Allnsing Seponte Assuming hat
IS
Y a<y got Li
2=0
gr La
u: 221
O bronca cade fe m Alli Sean :
s=0
1.0
Lis if ion gl ur
S=s+i
isi+1
RT
Tags
compiler construction
compiler design
target language in compiler design
target language
Categories
Design
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
7,203
Slides
4
Favorites
1
Age
1531 days
Related Slideshows
1
MGV Residential Design projects for different clients, including a New Mexico Adobe project-1-.pdf
mannyvesa
27 views
16
EUNITED_Advocacy and Public Engagement through Visual Media
GeorgeDiamandis11
32 views
31
DESIGN THINKINGGG PPT 2 TOPIC IDEATION.pptx
HibaZaidi2
26 views
36
DESIGN THINKING CHAPTER 1 PPTT PPT 1.pptx
HibaZaidi2
29 views
112
Hinduism and Its History - PowerPoint Slides.pptx
ConorMcCormack10
25 views
20
Service Attributes of Manufactured Parts.pptx
MustafaEnesKrmac
25 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-4)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better