From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3567d4ae1ce1d0a3 X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,3567d4ae1ce1d0a3 X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,1d6673b85a87920a X-Google-Attributes: gid110292,public From: campbejr@phu989 (John R Campbell) Subject: Re: P6 vs Alpha (was Re: Pro vs. Mips/Alpha) Date: 1996/07/19 Message-ID: <4sodn9$cjt@phunn1.sbphrd.com>#1/1 X-Deja-AN: 169693900 references: <31E94588.2B34@swcp.com> <4shiht$ed5@news.iastate.edu> <4sj2li$tph@zk2nws.zko.dec.com> <4sniad$gbl@vidar.diku.dk> <31EFA203.356B@swcp.com> followup-to: comp.sys.intel,comp.sys.dec,comp.arch organization: SmithKline Beecham Pharmaceuticals Research & Development reply-to: soup@kd3bj.ampr.org newsgroups: comp.sys.intel,comp.sys.dec,comp.arch H.W. Stockman (hwstock@swcp.com) wrote: : Torben AEgidius Mogensen wrote: : I suspect you are right, but out of curiosity, have you ever tried : assembly language programming on a RISC system? Now that assemblers : are smarter, and the CPU's have sequencing hardware, the problems : with load slots are not as severe. But my one experience with asm : on an R4000 was a bit sobering; the assembler reshuffled my instructions, : often with bizarre results. Apparently you were using an odd assembler. Surely the documentation for that assembler (assmebler?) had a chapter (or more) on side defects. : The OS writers clearly didn't want to give : control to asm users. I don't think RISC systems are as friendly about : writing asm (except perhaps under Linux...). A lot depends. I remember hearing about a fellow who did 256 jmp $+1 on the Xerox Sigma-9 and took down the O/S (CP-V) because the instruction pipeline refills took a lot of extra memory cycles. (And that was a CISC mainframe.) I, myself, worked with an array processor 15-16 years ago, the Sperry- UNIVAC (DataWest) Array Processing System. We didn't have "intelligent" assemblers for it, we used the 1100's MASM (Meta-Assembler) to generate code for it. It had 4 slices, so it was bizarre to work with. You also had to consider instruction overlap and the fact that the floating point ALUs took 4 cycles between providing operands and getting results from the other end (they were pipelined, too). When you did the microcode, a pad of graph paper came in handy to double-check the gating of results, especially moving between the integer and floating point halves of the beast. Writing microcode for *any* system is a rather demanding task, and I'd rather trust myself to consider the timing issues than to trust the assembler to know what I mean when I code a specific set of lines. The assumption *must* be made that the microcoder has some vague idea of that (s)he is doing, and is taking timing into account. Yes, microcoding *is* not something that *anybody* can do. It helps to have a picture of the gates and bus lines you're working with (looks like a railroad map, y'know). It is also important to consider timing. Look at the Fortran compiler for the ol' UNIVAC 1110 (a/k/a 1100/40); it used a pipeline architecture, so the compiler would be able to look at the code and do some shuffling to avoid register timing conflicts that would stall the code. Many RISC chips would need to stall when a register conflict arises; this is a *feature* introduced for stability. If you can write code that avoids stalls, everything will work better. -- John R. Campbell, Speaker to Machines soup@kd3bj.ampr.org "Son, you *can't* learn about impotence the hard way" - me