Related articles |
---|
Spilling in LCC mike@comlab.oxford.ac.uk (1995-10-25) |
Re: Spilling in LCC cwf@research.att.com (Chris Fraser) (1995-10-31) |
Newsgroups: | comp.compilers |
From: | mike@comlab.oxford.ac.uk (Mike Spivey) |
Keywords: | C, registers |
Organization: | Oxford University Computing Laboratory, UK |
Date: | Wed, 25 Oct 1995 10:57:22 GMT |
>From reading the Fraser/Hanson book about LCC, it seems to me that
(i) the register spiller assumes that each temporary is assigned once,
and the assignment is the first use. Thus, the store operation can
be inserted just after the instruction that first uses the temp.
(ii) conditional expressions (b ? e1 : e2) are translated as
if (not b) goto L1
tmp = e1
goto L2
L1:
tmp = e2
L2:
with the result in tmp. And this code contains two assignments to
tmp.
What am I missing?
-- Mike Spivey
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.