Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: nmm@wheeler.UUCP (Nick Maclaren) Newsgroups: comp.arch,sci.electronics.design Subject: Re: t cluttered Date: Wed, 13 Jan 2016 20:41:29 -0000 (UTC) Organization: Old Fogies Society Lines: 48 Message-ID: References: Reply-To: nmm1@cam.ac.uk Injection-Date: Wed, 13 Jan 2016 20:41:29 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="81e915c5cd52f81f9d564817488174de"; logging-data="4046"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GcVP/PECa6tcR+BWS+hQM" Originator: nmm@wheeler.UUCP (Nick Maclaren) X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Cancel-Lock: sha1:dd9272A53DuRpBwoZVlozoLOSs0= Xref: csiph.com comp.arch:32734 sci.electronics.design:393722 In article , Ivan Godard wrote: >> >> Grrk. That's a CATASTROPHIC solution! I am not arguing about whether >> to be able to address in terms of simple, fixed object sizes - that's >> a separate issue and the one that actually resolves. But, once you >> start thinking of array sizes and strides as fixed at compile-time, >> you end up with (original) Pascal/C/C++ - ghastly languages for array >> algorithms, all. > >You are clearly thinking Fortran, in which the second dimension often >has a runtime stride, while I'm thinking C where there is no second >dimension, just a first dimension done twice :-) Actually, it applies equally well to a multidimensional array class in C++. But you are right that C does not support multidimensional arrays - that was precisely my point! Damn the languages, I am talking about the algorithms and languages. >However, I really don't think that Fortran matrix code will be run on >the lowest-end Mills, so lacking a multiplier shouldn't be much of an >issue. They don't have floating point either. Don't bet on it. There are lots of matrix algorithms used in graph theory, often using Boolean arithmetic, and those are important in even some embedded codes. >Not applicable here. Mill is RISC-like in much of its addressing, and >there is no multiplier in the addressing pipes; if you need a stride, >you use an integer mul instruction and then compose your address from >the result. Where we are less RISCy is that we optimize the common case >of static *2/4/8/16 by muxing in the address adders, so those cases >don't need a multiply. And the Mill is statically scheduled/exposed >pipeline, so there's no issue of "stopping the pipeline" for any ops, >addressing included. That's fine by me. It doesn't matter HOW it is done, provided that integer multiplication in the addressing pipeline is only a minor performance problem. It's only a few codes, but those often depend on it very heavily. >And there's some doubt whether we will ever have hardware division. Again, provided that it performs acceptably, so what? Regards, Nick Maclaren.