



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Co
de
generation
op
i cs
regi
ste
r
al
l o (^) c ati
(^) on
pl
(^) ace
op
eran
ds
i n
regi
st
ers
reduce
l oad/store
op
e r at
i ons
i nstructi
on
sc
hedu
l i ng
c alc
ula
(^) te
when
eac
h
i (^) nst
r uct
i on
e (^) xec
utes
e n abl
es
pi
p el
i ni
ng
t o
h i de
l at
ency
req
u i red
on
arc
hi
tec
tures
hi
gh-
l ev
e l
l anguages
ob
(^) jec
t
ori
en
t ed
f u nct
i (^) onal
co
(^) d
e
ge
nerati
on
generators
aut
om
at
e
bac
k end
c on
st
(^) ru
c ti
on
t o
co
de
usi
ng
sp
eci
cat
i on
C MSC
430
L ec ture
1 4, (^) P
age
(^1)
Co
de
generation
for
trees
Seth
i-Ul
lm
an
a (^) lgo
ri
thm
generat
es
address
co
de
for
ex
p ressi
on
trees
uses
m
i ni
m
al
n um
b e r
of
regi
ste
r s
com
b i nes
al
l o c (^) ati
on
and
sc
hedul
i n g
Over
v i ew
of
al
go
rit
(^) hm
Phas
(^) e
com
pute
n u m
b er
of
r e gi
(^) sters
r e qui
red
t o
ev
al
uate
a
subtree
wi
t (^) h out
st
ori
n g
v al
ues
t (^) o
m
em
or
y
l ab
(^) el
eac
h
i n t (^) erior
no
de
wi
t h
t h at
n um
b e r
Phas
(^) e
w
al
k
the
t r e e
an
d
generat
e
co
(^) de
ev
al
uati
on
or
de
r
gui
ded
b y
l (^) ab
el
s
C (^) MSC
430
L ec ture
(^1) 4, (^) P
age
Sethi-U
ll
m
an
Phase
if
n
is
a
lea
f
the
n
l abel(
n)
1
els
e
beg
in
/*
n
is
an
interior
n o de
*/
l et
n
1 ; (^) n
2 ; (^) : (^) :
: (^) ; (^) n
k
be
the
c (^) hildr
en
of
n,
orde
red
s o
tha
t
labe
l ( n 1 (^) )
la
bel
n
2 )
(^) (^)
labe
l ( n
k (^) )
l abel(
n)
max
1 i k (^) ( labe
l ( n
i ) (^) +
i
(^) 1)
Can
comp
ute
la
bel
s
i n
p (^) osto
r de
r
or
n
label
i s
de
ned
rec
ur
si
v el
y
a s :
label
n )
=
@BBB 0
l 1
(^1)
i f
l 1
=
l 2
m
ax(
l 1 ; (^) l 2 (^) )
i (^) f
l 1
l 2
ACCC 1
lab
el
m
in
e g
( m
i (^) n i m
um
of
reg
ist
(^) ers)
C MSC
430
L ec ture
1 4, (^) P
age
(^3)
Sethi-U
ll
m
an
Phase
REG
curr
e n t
regi
st
(^) er
n um
b (^) e r
(i
ni
t i ali
z ed
t o
pro
cedur
e
gen
code(
(^) n)
i f
n
i s
le
af
name"
/*
c ase
jus
t
lo
ad
i t
*/
emit
(load
,
REG
(^) ,
nam
e)
e lse
i f
n
i s
in
(^) t eri
or
no
de
\op
n 1
n 2 "
then
if
l abel(
n 1 )
labe
l(
n
2 )
the
n
/*
c ase
ge
n e r ate
left
c hi
ld
rst
*/
ge
ncode
( n
1 )
RE
G
=
R EG+
ge
ncode
( n
2 )
RE
G
=
R EG
1
em
it(op
,
REG
(^) ,
REG
,
REG
(^) +1)
else
labe
l(
n 1 )
<
la
bel(
n
2 )
t hen
/*
c ase
ge
n e r ate
r ight
child
r st
*/
ge
ncode
( n
2 )
RE
G
=
R EG+
ge
ncode
( n
1 )
RE
G
=
R EG
1
em
it(op
,
REG
(^) ,
REG
+1,
R (^) EG)
endi
f
e ndif
C (^) MSC
430
L ec ture
(^1) 4, (^) P
age
Del
a y ed
l (^) o
ad
sc
heduli
ng
Ap
p roa
ch
sc
hedule
t he
op
erati
ons
(^) a
la
Se
thi
Ul
l m
an)
sc
hedule
t he
l oads
Legal
o r der
in
g
c hi
ldren
of
an
op
(^) erator
app
(^) ear
b (^) efore
i t
eac
h
l oad
app
e ar
s
b (^) ef
ore
o p erator
that
uses
i t
The
n al
sc
hed
ul
e
pr
e serv
es
r e l ati
v e
order
of
op
erati
ons
ops
$
ops
pr
e serv
es
r e l ati
v e
order
of
l oads
lo
ads
$
lo
ads
c hanges
rel
at
(^) i v e
ord
e r
of
l oads
to
op
(^) erat
i (^) on
s
T.A.
Pr
o ebsting
and
C.N.
F i sc her
, \Linear-t
i me,
o ptimal
co
(^) de
sc
hed
uling
for
dela
y ed
-load
arc
h ite
ctures,"
in
Pro
cee
d ings
of
SIGPL
A N
PLDI'
C MSC
430
L ec ture
1 4, (^) P
age
(^7)
The
D
L S
al
g or
i t hm
The
ca
non
ic
al
o rd
er
Giv
en
R
regi
ste
r s
sc
hedule
R
l oads
sc
hedule
a
seri
es
of
op,
lo
ad
p ai
rs
sc
hedule
t he
r e m
ai
ni
ng
R