Article View: comp.arch
Article #1592Re: RISC is NOT micro-code (was Re: Compiling - RISC vs. CISC
From: Jim Giles
Date: Wed, 19 Jul 1989 20:26
Date: Wed, 19 Jul 1989 20:26
28 lines
1845 bytes
1845 bytes
From article <BRUCE.89Jul18181114@heather.pooh.com>, by bruce@heather.pooh.com (Bruce Robertson):
> These optimizations have been mentioned:
> [1] Value propagation (get values from where cheapest, remember what
> values appear where and which quantities are equivalent)
> [2] Constant folding (also uses value prop.: A=5; B=A*A; would get
> coded as if it were A=5; B=25;)
> [3] Common subexpression elimination
> [4] Dead code elimination (get rid of dead stores, etc.)
They may have been mentioned, but I didn't mention them. All the
above are machine independent (except perhaps [1], which relates
to register allocation). The optimizations I mentioned were:
(A) Instruction selection (if several different sequences of instructions
can perform a given action - which is best?)
(B) Register allocation (store intermediate results in registers if at
all possible).
(C) Code ordering (issue the instructions in the order which best uses
pipelining or other parellelism in the archetecture).
Any one of the above is fairly easy to do in isolation. Any two of the
above are difficult to do because they interfere with each other. Only
CISC archetectures even have to consider (A) since, in a RISC, this
step is _very_ simple. I claim that CISC compilers must do all three
of the above in order to be competitive. Hence, my claim that CISC is
harder to compile for than RISC.
Technical Details
Message-ID:
<13995@lanl.gov>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lanl!jlgReferences:
<BRUCE.89Jul18181114@heather.pooh.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lanl!jlg From: jlg@lanl.gov (Jim Giles) Newsgroups: comp.arch Subject: Re: RISC is NOT micro-code (was Re: Compiling - RISC vs. CISC Message-ID: <13995@lanl.gov> Date: 19 Jul 89 20:26:39 GMT References: <BRUCE.89Jul18181114@heather.pooh.com> Organization: Los Alamos National Laboratory Lines: 28