Article View: comp.arch
Article #1621Re: RISC is NOT micro-code (was Re: Compiling - RISC vs. CISC
From: Steve Vegdahl
Date: Fri, 21 Jul 1989 16:31
Date: Fri, 21 Jul 1989 16:31
34 lines
1994 bytes
1994 bytes
In article <13995@lanl.gov>, jlg@lanl.gov (Jim Giles) writes: > (A) Instruction selection ... > (B) Register allocation ... > (C) Code ordering ... > 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. On the other hand, (C) is generally much more difficult for a RISC architcture, due to architectural features such as delayed branches and exposed memory latency. These features tend not pose difficult problems when treated in isolation---as was done in the early RISC compiler work---but cause additional compications when combined with other phases. I think that the RISC vs. CISC compiler issue is more or less a toss-up. With either type of architecture, you can write a *simple* compiler by compiling: * to a RISC subset * without code organization For higher quality code, CISC compilers are complicated by the need to consider complex addressing modes, while RISC compilers are complicated by the need to consider delayed branches and memory latency. Both kinds of complications have interdependencies with other aspects of optimization. Steve Vegdahl Computer Research Lab Tektronix Labs Beaverton, Oregon
Technical Details
Message-ID:
<4356@tekcrl.LABS.TEK.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!tekcrl!tekchips!stevevReferences:
<BRUCE.89Jul18181114@heather.pooh.com> <13995@lanl.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!tekcrl!tekchips!stevev From: stevev@tekchips.LABS.TEK.COM (Steve Vegdahl) Newsgroups: comp.arch Subject: Re: RISC is NOT micro-code (was Re: Compiling - RISC vs. CISC Message-ID: <4356@tekcrl.LABS.TEK.COM> Date: 21 Jul 89 16:31:17 GMT References: <BRUCE.89Jul18181114@heather.pooh.com> <13995@lanl.gov> Sender: ftp@tekcrl.LABS.TEK.COM Lines: 34