Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #393650

Re: t cluttered

From Anonymous <no_email@invalid.invalid>
Newsgroups comp.arch, sci.electronics.design
Subject Re: t cluttered
Date 2016-01-13 14:36 +0000
Message-ID <dfn5miF3102U1@mid.individual.net> (permalink)
References <cadfe$5693cdf1$d47876e2$58382@news.ziggo.nl> <n73ve1$93n$1@news.hpeswlab.net> <n740l4$8ot$1@dont-email.me> <n744s9$lhb$1@dont-email.me> <n759a7$luj$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


Nick Maclaren <nmm@wheeler.UUCP> wrote:
> In article <n744s9$lhb$1@dont-email.me>,
> Ivan Godard  <ivan@millcomputing.com> wrote:
>> 
>>> It has been known for half a century that integer multiply is a
>>> critical addressing operation for a significant proportion of
>>> important codes, though 'computer scientists' often refuse to
>>> admit it.
>> 
>> Nick - mul for scaling by stride, when you can't strength-reduce to an 
>> add, or when there are more disjoint addresses than you have registers 
>> to use for control variables.
>> 
>> However, with modern high-reg-count architectures (or long belt-count) 
>> and a general choice of natural alignment in arrays (leading to the mul 
>> being a manifest power-of-two and hence implementable with a shift) it's 
>> much less an issue. And where neither strength reduction nor shift work, 
>> most compilers are fairly clever about doing immediate multiplies as 
>> shift-and-add combinations.
> 
> Not in my experience :-(  The sort of algorithms that critically need
> such code are not typically ones where you can control the sizes or
> strides.  I would be interested in which compilers, because I have
> observed the converse - i.e. that trick is less common than it used
> to be.  But see below: dynamic sizes and strides are the ones of
> interest.
> 
>> We looked hard at this, and concluded that we needed to support stride 
>> scaling in addressing for all scalar strides. Pending measurement we 
>> have not yet settled on whether to extend that to 2*scalar stride, 
>> primarily for complex. Actually the bits are there to encode strides up 
>> to 128, although the utility of that is questionable :-)
> 
> 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.

Yup.  It is fascinating that the KDF9, delivered 52 years ago, had 
auto-increment addressing modes that updated the loop count by 1
and the address/offset by a dynamically-settable stride that could be
as large as the largest address, and either positive or negative.  

In conjunction with its FMA operation, and a jump-on-nonzero-count 
instruction that looped inside the instruction buffer, it made a superb 
scalar-product evaluator of a machine with very modest h/w resources.

I think I might detect the influence of Jim Wilkinson in this.

-- 
Bill Findlay

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Intel's Skylake Prime Number Bug. "Skybuck Flying" <skybuck2000@hotmail.com> - 2016-01-11 16:44 +0100
  Re: Intel's Skylake Prime Number Bug. Larc <larc@notmyaddress.com> - 2016-01-11 11:10 -0500
    Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-11 10:22 -0800
      Re: Intel's Skylake Prime Number Bug. Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-11 13:42 -0500
        Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-11 11:12 -0800
          Re: Intel's Skylake Prime Number Bug. David Brown <david.brown@hesbynett.no> - 2016-01-12 11:06 +0100
            Re: Intel's Skylake Prime Number Bug. Richard Heathfield <rjh@cpax.org.uk> - 2016-01-12 10:21 +0000
              Re: Intel's Skylake Prime Number Bug. David Brown <david.brown@hesbynett.no> - 2016-01-12 11:42 +0100
            t cluttered John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-12 09:25 -0800
              Re: t cluttered David Brown <david.brown@hesbynett.no> - 2016-01-12 22:05 +0100
                Re: t cluttered Ivan Godard <ivan@millcomputing.com> - 2016-01-12 14:03 -0800
                Re: t cluttered Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2016-01-12 21:44 -0800
                Re: t cluttered Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-13 15:41 +0800
                Re: t cluttered krw <krw@nowhere.com> - 2016-01-13 21:39 -0500
                Re: t cluttered Rick Jones <rick.jones2@hpe.com> - 2016-01-12 22:41 +0000
                Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-12 23:01 +0000
                Re: t cluttered Ivan Godard <ivan@millcomputing.com> - 2016-01-12 16:16 -0800
                Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-13 10:35 +0000
                Re: t cluttered Anonymous <no_email@invalid.invalid> - 2016-01-13 14:36 +0000
                Re: t cluttered Robert Wessel <robertwessel2@yahoo.com> - 2016-01-14 02:48 -0600
                Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-14 10:50 +0000
                Re: t cluttered Ivan Godard <ivan@millcomputing.com> - 2016-01-13 11:54 -0800
                Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-13 20:41 +0000
                Re: t cluttered mrs@kithrup.com (Mike Stump) - 2016-01-18 13:37 +0000
                Re: t cluttered Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-19 00:06 +0800
                Re: t cluttered Ivan Godard <ivan@millcomputing.com> - 2016-01-18 15:27 -0800
                Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-19 09:43 +0000
                Re: t cluttered Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-19 18:00 +0800
                Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-19 11:25 +0000
                Re: t cluttered Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-19 19:48 +0700
                Re: t cluttered Walter Banks <walter@bytecraft.com> - 2016-01-19 09:54 -0500
                Re: t cluttered nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-19 16:49 +0000
                Re: t cluttered krw <krw@nowhere.com> - 2016-01-12 20:53 -0500
                Re: t cluttered Dennis <dennis@none.none> - 2016-01-13 14:56 -0600
                Re: t cluttered krw <krw@nowhere.com> - 2016-01-13 21:43 -0500
              Re: t cluttered upsidedown@downunder.com - 2016-01-13 10:15 +0200
        Re: Intel's Skylake Prime Number Bug. JJ <jj4public@vfemail.net> - 2016-01-12 13:11 +0700
        Re: Intel's Skylake Prime Number Bug. "Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com> - 2016-01-12 02:45 -0500
          Re: Intel's Skylake Prime Number Bug. Paul <nospam@needed.com> - 2016-01-12 04:38 -0500
          Re: Intel's Skylake Prime Number Bug. krw <krw@nowhere.com> - 2016-01-12 12:35 -0500
      Re: Intel's Skylake Prime Number Bug. DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-01-11 15:37 -0500
        Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-11 20:35 -0800
          Re: Intel's Skylake Prime Number Bug. DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-01-12 02:38 -0500
            Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-12 09:27 -0800
          Re: Intel's Skylake Prime Number Bug. Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2016-01-12 09:11 +0000
            Re: Intel's Skylake Prime Number Bug. DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-01-12 13:08 +0000
            Re: Intel's Skylake Prime Number Bug. DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-01-12 09:45 -0500
            Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-12 09:29 -0800
              Re: Intel's Skylake Prime Number Bug. Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2016-01-12 17:55 +0000
                Re: Intel's Skylake Prime Number Bug. M Philbrook <jamie_ka1lpa@charter.net> - 2016-01-12 18:25 -0500
                Re: Intel's Skylake Prime Number Bug. Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2016-01-13 12:03 -0500
                Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-12 16:18 -0800
                Re: Intel's Skylake Prime Number Bug. John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-12 20:10 -0800
        Re: Intel's Skylake Prime Number Bug. Joe Hey <joehey@mailinator.com> - 2016-01-12 08:05 +0000
      Re: Intel's Skylake Prime Number Bug. Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2016-01-11 22:21 +0000
        Re: Intel's Skylake Prime Number Bug. krw <krw@nowhere.com> - 2016-01-11 21:38 -0500
      Re: Intel's Skylake Prime Number Bug. krw <krw@nowhere.com> - 2016-01-11 21:37 -0500
      Re: Intel's Skylake Prime Number Bug. Robert Baer <robertbaer@localnet.com> - 2016-01-12 20:23 -0800
      Re: Intel's Skylake Prime Number Bug. John Levine <johnl@iecc.com> - 2016-01-13 05:19 +0000
    Re: Intel's Skylake Prime Number Bug. "Skybuck Flying" <skybuck2000@hotmail.com> - 2016-01-11 21:44 +0100
      Re: Intel's Skylake Prime Number Bug. Paul <nospam@needed.com> - 2016-01-11 16:55 -0500
        Re: Intel's Skylake Prime Number Bug. B00ze <B00ze64@hotmail.com> - 2016-01-11 23:48 -0500
      Re: Intel's Skylake Prime Number Bug. "Skybuck Flying" <skybuck2000@hotmail.com> - 2016-01-12 16:35 +0100
  Re: Intel's Skylake Prime Number Bug. Keith Thompson <kst-u@mib.org> - 2016-01-11 23:46 -0800

csiph-web