home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.arch:9369 comp.lang.misc:3030
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!sdd.hp.com!hp-cv!ogicse!orstcs!orstcs!usenetusenet
- From: crowl@jade.CS.ORST.EDU (Lawrence Crowl)
- Newsgroups: comp.arch,comp.lang.misc
- Subject: Goals, Cost, and Flexibility (was Re: "Training" of programmers)
- Message-ID: <1992Sep11.184744.19329@CS.ORST.EDU>
- Date: 11 Sep 92 18:47:44 GMT
- Article-I.D.: CS.1992Sep11.184744.19329
- References: <Btx4vF.Jx6@mentor.cc.purdue.edu> <1992Sep4.151001.9886@sei.cmu.edu> <Bu5qD3.GAM@mentor.cc.purdue.edu>
- Sender: usenet@CS.ORST.EDU
- Organization: Oregon State University, Corvallis Oregon
- Lines: 51
- Nntp-Posting-Host: jade.cs.orst.edu
-
- In article <Bu5qD3.GAM@mentor.cc.purdue.edu>
- hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
- >And then the hardware designers, being told that something is useless, drop
- >it from the instruction set?
-
- You misunderstand what has happened in the industry. The hardware designers
- were told that something was rarely used, and therefore was not cost
- effective. As good engineers, they dropped the feature.
-
- >Designing flexibility in both hardware and software is not that expensive;
- >putting in something left out may be.
-
- My experience is just the opposite. Designing flexibility in either hardware
- or software is very expensive. Given the time to program a simple utility
- with one option versus one with twenty supports this claim. The time to build
- an shifter of constant shift versus one of variable shift also supports this
- claim. I invite you to provide _evidence_ in support of your claim.
-
- I grant you, putting something in later will be expensive.
-
- >A simple example is that of square root. The cost of putting in square root
- >on any machine which has "classical" division hardware is essentially zero
- >at the design and construction stage, but an algorithm to do it is otherwise
- >is necessarily slow and costly.
-
- Only costly when making simplistic comparisons. If the lack of square root
- hardware increases my run time from 10 seconds to 10.0001 seconds (which is
- probably realistic for many if not most program runs), it is _not_ costly.
-
- >Bit vectors do not necessarily start on a word, or even a byte, boundary,
-
- Yes, but if only one in a million don't, supporting non-aligned bit vectors
- probably isn't cost effective.
-
- >and again, it is easier to deal with the problem at hardware design time
- >rather than in software.
-
- This claim is strongly supported by the wide abundance of hardware-implemented
- compilers and spreadsheet packages. :-) My experience indicates that the
- cost to deliver a working solution to _almost_any_ problem is cheaper in
- software than hardware. Consider the cost of building a working multiplier
- versus the cost of writing an iterative adding subroutine. I invite you to
- provide _evidence_ that your claim is true.
-
- What you meant to say is "its easier for me if the hardware designers gave me
- exactly what I wanted".
-
- --
- Lawrence Crowl 503-737-2554 Computer Science Department
- crowl@cs.orst.edu Oregon State University
- ...!hplabs!hp-pcd!orstcs!crowl Corvallis, Oregon, 97331-3202
-