🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #1594

Re: RISC is NOT micro-code

#1594
From: Jonathan A. Chandross
Date: Thu, 20 Jul 1989 02:06
30 lines
1917 bytes
cjosta@tasu77.UUCP (Jonathan Sweedler)
> Don't forget that MIPS, one of the early RISC
> chips, stands for 'Microprocessor without Interlocked Pipe Stages.'
> This means that interlocks must be handled in the compiler.  So
> forgetting about all optimization, just writing a compiler that WORKS
> on a RISC chip is by DEFINITION harder than writing a compiler for a
> CISC chip.

Actually, this is usually handled by a recoding assembler.  You 
don't really want to handle it in your compiler unless your compiler 
integrates the assembly phase and emits .o files directly.  The reason 
is that you have to do some analysis on the whole program when you 
are finished to try to fill the delayed branch slots, and to reorder 
instructions, inserting no-ops where necessary, to avoid pipeline 
conflicts.  So you might as well do it then.

And writing a RISC compiler isn't `by DEFINITION'' harder: you just
pad out everything with no-ops (both delayed branch slots and the 
actual instructions to insure that the pipeline flushes.)  Pretty 
poor object code, but you don't have to do any analysis at all.

Writing a compiler that makes use of the non-trivial features of a 
machine, RISC or CISC, is very tricky.  For instance, I still haven't
found out how I can generate code to use those all those nice BCD 
instructions in my 68k.....


Jonathan A. Chandross
Internet: jac@paul.rutgers.edu
UUCP: rutgers!paul.rutgers.edu!jac
Technical Details
Message-ID: <Jul.19.22.06.53.1989.3109@paul.rutgers.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!aramis.rutgers.edu!paul.rutgers.edu!jac
References: <753@bnr-fos.UUCP> <1989Jul17.035238.6497@utzoo.uucp> <756@bnr-fos.UUCP> <2203@taux01.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!aramis.rutgers.edu!paul.rutgers.edu!jac
From: jac@paul.rutgers.edu (Jonathan A. Chandross)
Newsgroups: comp.arch
Subject: Re: RISC is NOT micro-code
Message-ID: <Jul.19.22.06.53.1989.3109@paul.rutgers.edu>
Date: 20 Jul 89 02:06:54 GMT
References: <753@bnr-fos.UUCP> <1989Jul17.035238.6497@utzoo.uucp> <756@bnr-fos.UUCP> <2203@taux01.UUCP>
Organization: Rutgers Univ., New Brunswick, N.J.
Lines: 30