Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch > #29292 > unrolled thread
| Started by | jim.brakefield@ieee.org |
|---|---|
| First post | 2015-08-21 20:11 -0700 |
| Last post | 2015-08-27 20:00 -0700 |
| Articles | 20 on this page of 138 — 30 participants |
Back to article view | Back to comp.arch
Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-21 20:11 -0700
Re: Four significant reasons for a 12X word size MitchAlsup <MitchAlsup@aol.com> - 2015-08-22 10:18 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-22 12:16 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-08-22 12:49 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-09-01 12:34 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-09-01 12:59 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-09-01 13:29 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-09-01 15:36 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-09-01 17:07 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-09-01 18:12 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-09-01 20:39 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-09-01 21:30 -0700
Permute registers (was: Four significant reasons for a 12X word size) Stefan Monnier <monnier@iro.umontreal.ca> - 2015-09-04 15:36 -0400
Re: Permute registers (was: Four significant reasons for a 12X word size) jim.brakefield@ieee.org - 2015-09-04 13:18 -0700
Re: Permute registers Ivan Godard <ivan@millcomputing.com> - 2015-09-04 13:41 -0700
Re: Permute registers Ivan Godard <ivan@millcomputing.com> - 2015-09-04 13:27 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-09-01 18:15 -0700
A good Mill intro (external) Ivan Godard <ivan@millcomputing.com> - 2015-09-01 18:43 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-09-01 20:52 -0700
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-09-02 04:03 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-09-02 05:59 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-09-02 06:11 -0700
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-09-02 07:15 -0700
Re: Four significant reasons for a 12X word size Chris Gray <cg@GraySage.COM> - 2015-09-02 10:42 -0600
Re: Four significant reasons for a 12X word size Anssi Saari <as@sci.fi> - 2015-09-03 11:32 +0300
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-09-02 10:03 -0700
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-09-02 11:54 -0700
Re: Four significant reasons for a 12X word size Chris Gray <cg@GraySage.COM> - 2015-09-03 11:00 -0600
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-09-03 10:11 -0700
Re: Four significant reasons for a 12X word size Jan Coombs <Jan-54 <jenfhaomndgfwutc@murmic.plus.com>> - 2015-09-04 09:35 +0100
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-22 12:51 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-22 13:11 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-23 11:14 -0500
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-23 11:13 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-23 14:33 -0500
Re: Four significant reasons for a 12X word size thomas.entner99@gmail.com - 2015-08-23 16:23 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-23 17:43 -0700
Re: Four significant reasons for a 12X word size thomas.entner99@gmail.com - 2015-08-23 18:00 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-23 19:14 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-23 20:00 -0500
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-08-24 04:59 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-24 18:45 +0200
Re: Four significant reasons for a 12X word size nmm@needham.csi.cam.ac.uk (Nick Maclaren) - 2015-08-24 19:09 +0100
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-24 13:31 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-24 14:09 -0700
Re: Four significant reasons for a 12X word size jgd@cix.co.uk (John Dallman) - 2015-08-24 22:26 +0100
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-25 10:29 +0000
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-24 16:22 -0700
Re: Four significant reasons for a 12X word size MitchAlsup <MitchAlsup@aol.com> - 2015-08-24 16:58 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-24 18:48 -0700
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-25 09:04 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-25 09:32 -0500
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-08-25 10:30 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-25 21:27 +0200
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-08-25 13:51 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-26 08:31 +0200
Re: Four significant reasons for a 12X word size MitchAlsup <MitchAlsup@aol.com> - 2015-08-25 16:56 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-08-25 17:36 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-25 20:10 -0500
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-08-26 02:41 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 09:28 -0500
Re: Four significant reasons for a 12X word size Waldek Hebisch <hebisch@antispam.uni.wroc.pl> - 2015-08-27 00:53 +0000
Re: Four significant reasons for a 12X word size jgk@panix.com (Joe keane) - 2015-08-25 18:30 +0000
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-25 21:31 +0200
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-25 20:40 -0500
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-26 09:24 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 08:09 -0500
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-26 14:35 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 10:29 -0500
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-26 16:17 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 17:42 -0500
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-27 13:51 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-27 10:50 -0500
Re: Four significant reasons for a 12X word size Michael S <already5chosen@yahoo.com> - 2015-08-28 04:44 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-28 08:22 -0500
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-26 22:32 +0200
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 18:25 -0500
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-26 09:15 +0000
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-26 06:28 -0700
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-26 13:54 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 09:53 -0500
Re: Four significant reasons for a 12X word size Stefan Monnier <monnier@iro.umontreal.ca> - 2015-08-28 11:22 -0400
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-28 16:09 -0500
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 14:54 +0200
character encoding (was: Four significant reasons for a 12X word size) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-29 14:05 +0000
Re: character encoding Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 19:10 +0200
Re: character encoding nmm@needham.csi.cam.ac.uk (Nick Maclaren) - 2015-08-29 18:25 +0100
Re: character encoding Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 21:03 +0200
Re: character encoding Ivan Godard <ivan@millcomputing.com> - 2015-08-29 10:32 -0700
Re: character encoding nmm@needham.csi.cam.ac.uk (Nick Maclaren) - 2015-08-29 18:37 +0100
Re: character encoding Ivan Godard <ivan@millcomputing.com> - 2015-08-29 10:53 -0700
Re: character encoding nmm@needham.csi.cam.ac.uk (Nick Maclaren) - 2015-08-29 19:12 +0100
Re: character encoding anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-29 17:35 +0000
Re: character encoding Ivan Godard <ivan@millcomputing.com> - 2015-08-29 10:44 -0700
Re: character encoding anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-29 17:55 +0000
Re: character encoding anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-31 11:23 +0000
Re: character encoding Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-31 14:18 +0200
Re: character encoding Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 21:20 +0200
Re: character encoding Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 21:11 +0200
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-29 12:19 -0500
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-29 07:41 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 19:12 +0200
Re: Four significant reasons for a 12X word size nmm@needham.csi.cam.ac.uk (Nick Maclaren) - 2015-08-29 18:23 +0100
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-29 17:17 -0500
Re: Four significant reasons for a 12X word size George Neuner <gneuner2@comcast.net> - 2015-08-29 14:57 -0400
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-29 12:40 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-30 00:05 +0200
Re: Four significant reasons for a 12X word size EricP <ThatWouldBeTelling@thevillage.com> - 2015-08-24 13:16 -0400
Re: Four significant reasons for a 12X word size EricP <ThatWouldBeTelling@thevillage.com> - 2015-08-24 13:29 -0400
Re: Four significant reasons for a 12X word size mrs@kithrup.com (Mike Stump) - 2015-08-24 21:32 +0000
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-25 08:49 +0200
Re: Four significant reasons for a 12X word size mrs@kithrup.com (Mike Stump) - 2015-08-25 22:43 +0000
Re: Four significant reasons for a 12X word size EricP <ThatWouldBeTelling@thevillage.com> - 2015-08-25 21:55 -0400
Re: Four significant reasons for a 12X word size paul wallich <pw@panix.com> - 2015-08-25 22:12 -0400
Re: Four significant reasons for a 12X word size EricP <ThatWouldBeTelling@thevillage.com> - 2015-08-26 13:54 -0400
Re: Four significant reasons for a 12X word size Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2015-08-26 11:47 -0700
Re: Four significant reasons for a 12X word size mac <acolvin@efunct.com> - 2015-08-27 16:15 +0000
Re: Four significant reasons for a 12X word size Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2015-08-27 10:44 -0700
Re: Four significant reasons for a 12X word size rpw3@rpw3.org (Rob Warnock) - 2015-08-28 06:09 +0000
Re: Four significant reasons for a 12X word size EricP <ThatWouldBeTelling@thevillage.com> - 2015-08-28 12:23 -0400
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-26 08:37 +0200
Re: Four significant reasons for a 12X word size mrs@kithrup.com (Mike Stump) - 2015-08-26 22:54 +0000
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-27 07:48 +0200
Re: Four significant reasons for a 12X word size mrs@kithrup.com (Mike Stump) - 2015-08-27 16:30 +0000
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-23 19:09 -0700
Re: Four significant reasons for a 12X word size Megol <golem960@gmail.com> - 2015-08-24 04:32 -0700
Re: Four significant reasons for a 12X word size R Kym Horsell <kym@kymhorsell.com> - 2015-08-24 11:37 +0000
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-22 12:56 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-22 13:10 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-22 17:17 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-22 19:59 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-09-01 12:47 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-22 20:10 -0700
Re: Four significant reasons for a 12X word size Robert Wessel <robertwessel2@yahoo.com> - 2015-08-23 21:41 -0500
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-24 10:53 -0500
Re: Four significant reasons for a 12X word size Robert Miles <robertmilesxyz@gmail.com> - 2015-08-26 17:39 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-27 07:52 +0200
Re: Four significant reasons for a 12X word size spamkiller539@gmail.com - 2015-08-27 20:00 -0700
Page 3 of 7 — ← Prev page 1 2 [3] 4 5 6 7 Next page →
| From | Bruce Hoult <bruce.hoult@gmail.com> |
|---|---|
| Date | 2015-08-24 04:59 -0700 |
| Message-ID | <3a1828c7-52b5-412e-ad32-baa0f1778619@googlegroups.com> |
| In reply to | #29310 |
On Monday, August 24, 2015 at 3:43:44 AM UTC+3, Quadibloc wrote: > On Sunday, August 23, 2015 at 5:23:49 PM UTC-6, thomas....@gmail.com wrote: > (quoting somebody) > > > a downside though of 12/24/... is that then the bit count would no > > > longer be a power of 2. > > > I do not see any benefit in the byte-size being a power of 2. > > There's really only one benefit, although very few computer systems make use of > it. > > If the byte and word sizes are a power of two, then one can address *individual > bits* in the computer's memory. This was done on the STRETCH, for example. > > John Savard A lot of code does things such as: if ((arr[i/WORDBITS]) & (1<<(i%WORDBITS))) ... div and mod with a power of two WORDBITS is just shift and mask. With normal hardware, doing this by a multiple of 12 is not as fast. Can special-purpose circuits with transistors to burn make it enough faster than general division to be competitive for most purposes? Note that it's ok for the result of the mod to have a cache reference worth of extra latency, so that's easy enough with a normal msub. It's the divide that needs work.
[toc] | [prev] | [next] | [standalone]
| From | Terje Mathisen <terje.mathisen@tmsw.no> |
|---|---|
| Date | 2015-08-24 18:45 +0200 |
| Message-ID | <mrfhn2$skf$1@speranza.aioe.org> |
| In reply to | #29320 |
Bruce Hoult wrote: > On Monday, August 24, 2015 at 3:43:44 AM UTC+3, Quadibloc wrote: >> On Sunday, August 23, 2015 at 5:23:49 PM UTC-6, >> thomas....@gmail.com wrote: (quoting somebody) >>>> a downside though of 12/24/... is that then the bit count would >>>> no longer be a power of 2. >> >>> I do not see any benefit in the byte-size being a power of 2. >> >> There's really only one benefit, although very few computer systems >> make use of it. >> >> If the byte and word sizes are a power of two, then one can address >> *individual bits* in the computer's memory. This was done on the >> STRETCH, for example. >> >> John Savard > > A lot of code does things such as: > > if ((arr[i/WORDBITS]) & (1<<(i%WORDBITS))) ... > > div and mod with a power of two WORDBITS is just shift and mask. > > With normal hardware, doing this by a multiple of 12 is not as fast. > > Can special-purpose circuits with transistors to burn make it enough > faster than general division to be competitive for most purposes? > Note that it's ok for the result of the mod to have a cache reference > worth of extra latency, so that's easy enough with a normal msub. > It's the divide that needs work. > It would be fun to make divmod 12 fast, fun but stupid. :-( I.e. all these suggestions for slightly wider/narrower memories/datatypes really don't make any sense at all. Power of two have won, deal with it. Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
[toc] | [prev] | [next] | [standalone]
| From | nmm@needham.csi.cam.ac.uk (Nick Maclaren) |
|---|---|
| Date | 2015-08-24 19:09 +0100 |
| Message-ID | <mrfmkm$9pa$1@needham.csi.cam.ac.uk> |
| In reply to | #29325 |
In article <mrfhn2$skf$1@speranza.aioe.org>, Terje Mathisen <terje.mathisen@tmsw.no> wrote: >> >It would be fun to make divmod 12 fast, fun but stupid. :-( > >I.e. all these suggestions for slightly wider/narrower >memories/datatypes really don't make any sense at all. > >Power of two have won, deal with it. For now. Actually, there are good arguments for such things. One could justify the raw sizes, including such things as ECC, being powers of two, which would lead to other values for the sizes as seen by the program. I am not holding my breath. If there is a change, it won't be soon, and probably won't be predicted by anyone today, because (like you) I can't see any alternative that would get over the change barrier. Regards, Nick Maclaren.
[toc] | [prev] | [next] | [standalone]
| From | jim.brakefield@ieee.org |
|---|---|
| Date | 2015-08-24 13:31 -0700 |
| Message-ID | <54cc79b0-7eab-46a1-9e8a-c7a2b44cbb9a@googlegroups.com> |
| In reply to | #29325 |
On Monday, August 24, 2015 at 11:45:28 AM UTC-5, Terje Mathisen wrote: > Bruce Hoult wrote: > > On Monday, August 24, 2015 at 3:43:44 AM UTC+3, Quadibloc wrote: > >> On Sunday, August 23, 2015 at 5:23:49 PM UTC-6, > >> thomas....@gmail.com wrote: (quoting somebody) > >>>> a downside though of 12/24/... is that then the bit count would > >>>> no longer be a power of 2. > >> > >>> I do not see any benefit in the byte-size being a power of 2. > >> > >> There's really only one benefit, although very few computer systems > >> make use of it. > >> > >> If the byte and word sizes are a power of two, then one can address > >> *individual bits* in the computer's memory. This was done on the > >> STRETCH, for example. > >> > >> John Savard > > > > A lot of code does things such as: > > > > if ((arr[i/WORDBITS]) & (1<<(i%WORDBITS))) ... > > > > div and mod with a power of two WORDBITS is just shift and mask. > > > > With normal hardware, doing this by a multiple of 12 is not as fast. > > > > Can special-purpose circuits with transistors to burn make it enough > > faster than general division to be competitive for most purposes? > > Note that it's ok for the result of the mod to have a cache reference > > worth of extra latency, so that's easy enough with a normal msub. > > It's the divide that needs work. > > > It would be fun to make divmod 12 fast, fun but stupid. :-( > > I.e. all these suggestions for slightly wider/narrower > memories/datatypes really don't make any sense at all. > > Power of two have won, deal with it. > > Terje > > -- > - <Terje.Mathisen at tmsw.no> > "almost all programming can be viewed as an exercise in caching" RE: Power of two have won, deal with it Never! A side effect of 12X sizing is that compilers and the software industry would need to deal with it. There are those who bemoan the quality of commercial software. Having to specify Int8, Int12, etc. would force more consideration of datum size by the software people and would IMHO result in higher quality software. (engineering data sheets try to specify behavior under all possible conditions, whereas a software API is a set of incompletely specified "functions") We need to get to the point that Int is not a valid data type! Jim Brakefield
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2015-08-24 14:09 -0700 |
| Message-ID | <d267f64f-fd78-4265-9d0c-1fe216af1a75@googlegroups.com> |
| In reply to | #29325 |
On Monday, August 24, 2015 at 10:45:28 AM UTC-6, Terje Mathisen wrote: > Power of two have won, deal with it. I admit this, but see my posts in this thread. My concern is not so much that 36 or 48 bits is "better", but that the loss of flexibility to use them at least as options - and, for that matter, the absolute dominance of a *single* ISA on the desktop - is unfortunate. What we need is for the processors in our desktops and laptops to have the capability to switch between architectures, even those with a different word length, and yet run at full native speed without an emulation penalty! And I think that's almost possible, although I note that *pipelining*, as a feature of any reasonably powerful CPU, is a serious obstacle. John Savard
[toc] | [prev] | [next] | [standalone]
| From | jgd@cix.co.uk (John Dallman) |
|---|---|
| Date | 2015-08-24 22:26 +0100 |
| Message-ID | <memo.20150824222633.4876W@jgd.cix.co.uk> |
| In reply to | #29330 |
In article <d267f64f-fd78-4265-9d0c-1fe216af1a75@googlegroups.com>, jsavard@ecn.ab.ca (Quadibloc) wrote: > What we need is for the processors in our desktops and laptops to > have the capability to switch between architectures, even those > with a different word length, and yet run at full native speed > without an emulation penalty! > > And I think that's almost possible, although I note that > *pipelining*, as a feature of any reasonably powerful CPU, is a > serious obstacle. All you need is a way to make it advantageous enough that people will build it. But there's the rub. The electronics required to run several different instruction sets is going to be more complex than that for a single instruction set, in some way. And if that complexity can be put to use in making the single instruction set faster, that's what most people will buy. At present, overall speed depends largely on memory and cache design, and the instruction set isn't actually very important, provided it doesn't waste bandwidth. If you want to make the instruction set important, you need to reduce the significance of the things that make it unimportant. John
[toc] | [prev] | [next] | [standalone]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Date | 2015-08-25 10:29 +0000 |
| Message-ID | <2015Aug25.122929@mips.complang.tuwien.ac.at> |
| In reply to | #29331 |
jgd@cix.co.uk (John Dallman) writes: >At present, overall speed depends largely on memory and cache design That depends on the application. Some are memory-bound, others are core-bound. As for cache design, while I have seen cases of pretty bad caches (e.g., write-through caches on 600MHz ARM CPUs), it seems to me that there are many good cache designs around that don't limit the performance of many programs. > and >the instruction set isn't actually very important, provided it doesn't >waste bandwidth. Yes, it looks that way, and the evidence is the strong performance differences on core-bound applications between CPUs with the same instruction set (Atom, Bobcat, Bulldozer and Haswell microarchitectures). It's not clear where these performance differences come from, but it seems to me that Intel has worked steadily on smoothing rough edges in the (originally P6) microarchitecture; stuff like better branch prediction reported here two weeks ago, or also less slowdowns when performing accesses that cross cache lines (as I reported some months ago). AMD has followed a different path of revolutionizing the microarchitectures, but unfortunately (expcept for Intel) that has not worked out in recent years. - anton -- M. Anton Ertl Some things have to be seen to be believed anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen http://www.complang.tuwien.ac.at/anton/home.html
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2015-08-24 16:22 -0700 |
| Message-ID | <52170d0e-5042-489b-b4f6-487aaad84058@googlegroups.com> |
| In reply to | #29325 |
On Monday, August 24, 2015 at 10:45:28 AM UTC-6, Terje Mathisen wrote: > Power of two have won, deal with it. In recognition of that fact, of which I am fully aware, as I've noted in my previous reply to this post, I have added some more content to the very bottom of the page http://www.quadibloc.com/arch/per04.htm where I note that while the scheme originally proposed was the simplest to understand, one can revise it so that memory bandwidth is fully utilized for 64-bit data - by shrinking the C memory array to half the size - now it's just there to provide spare bits for reliability, and DEC-TED-S4ED error correction coding, while using standard cheap 64-bit parts instead of expensive 72-bit memory parts. The ability to use the other memory widths, then, is just gravy - some of them waste less memory bandwidth, but the 36 bit word wastes significantly more memory bandwidth, unfortunately. John Savard
[toc] | [prev] | [next] | [standalone]
| From | MitchAlsup <MitchAlsup@aol.com> |
|---|---|
| Date | 2015-08-24 16:58 -0700 |
| Message-ID | <533ac839-c705-4808-922d-957159102981@googlegroups.com> |
| In reply to | #29325 |
On Monday, August 24, 2015 at 11:45:28 AM UTC-5, Terje Mathisen wrote: > > Power of two have won, deal with it. This is correct in terms of data widths and address widths. This is incorrect if and when data-tagging comes back into style. Mitch
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2015-08-24 18:48 -0700 |
| Message-ID | <98698937-ca6b-4237-a483-f32a7e23ab99@googlegroups.com> |
| In reply to | #29335 |
On Monday, August 24, 2015 at 5:58:15 PM UTC-6, MitchAlsup wrote: > This is incorrect if and when data-tagging comes back into style. And, it should be noted, while the Burroughs architecture specifically has problems that would prevent it from becoming the new standard - its stack orientation clashes with pipelining - tagged data is potentially relevant to a major current issue: computer security. Tagged data is an effective way to pretty much eliminate the constant hazard of buffer overflows that allow so many exploits. John Savard
[toc] | [prev] | [next] | [standalone]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Date | 2015-08-25 09:04 +0000 |
| Message-ID | <2015Aug25.110448@mips.complang.tuwien.ac.at> |
| In reply to | #29335 |
MitchAlsup <MitchAlsup@aol.com> writes: >On Monday, August 24, 2015 at 11:45:28 AM UTC-5, Terje Mathisen wrote: >> >> Power of two have won, deal with it. > >This is correct in terms of data widths and address widths. >This is incorrect if and when data-tagging comes back into style. Data tagging has been used for a long time in various programming language implementations. It works nicely with power-of-two word sizes; moreover, on 64-bit architectures (with byte addressing, but that's all of them), we can have 8 different tag values without reducing the addressible memory. - anton -- M. Anton Ertl Some things have to be seen to be believed anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen http://www.complang.tuwien.ac.at/anton/home.html
[toc] | [prev] | [next] | [standalone]
| From | BGB <cr88192@hotmail.com> |
|---|---|
| Date | 2015-08-25 09:32 -0500 |
| Message-ID | <mrhuif$d94$1@news.albasani.net> |
| In reply to | #29340 |
On 8/25/2015 4:04 AM, Anton Ertl wrote: > MitchAlsup <MitchAlsup@aol.com> writes: >> On Monday, August 24, 2015 at 11:45:28 AM UTC-5, Terje Mathisen wrote: >>> >>> Power of two have won, deal with it. >> >> This is correct in terms of data widths and address widths. >> This is incorrect if and when data-tagging comes back into style. > > Data tagging has been used for a long time in various programming > language implementations. It works nicely with power-of-two word > sizes; moreover, on 64-bit architectures (with byte addressing, but > that's all of them), we can have 8 different tag values without > reducing the addressible memory. > the cost of LSB tagging is, however, that any such pointers can no longer be byte-aligned, which is an issue for things like tagged pointers into arrays or pointing at string characters. granted, yes, MSB tagging reduces the size of the address space, but this isn't really an issue on current 64-bit targets. granted, it isn't really a good option for 32-bit targets much outside of microcontroller development at this point. which is better likely depends on the use-case. for object-pointers and LSB tagging, you can actually get by using 4-bits as a tag if all objects are 16-byte aligned.
[toc] | [prev] | [next] | [standalone]
| From | Bruce Hoult <bruce.hoult@gmail.com> |
|---|---|
| Date | 2015-08-25 10:30 -0700 |
| Message-ID | <d46c75c6-cdc8-464a-b148-1a4cd0076eb2@googlegroups.com> |
| In reply to | #29358 |
On Tuesday, August 25, 2015 at 5:37:05 PM UTC+3, BGB wrote: > On 8/25/2015 4:04 AM, Anton Ertl wrote: > > MitchAlsup <MitchAlsup@aol.com> writes: > >> On Monday, August 24, 2015 at 11:45:28 AM UTC-5, Terje Mathisen wrote: > >>> > >>> Power of two have won, deal with it. > >> > >> This is correct in terms of data widths and address widths. > >> This is incorrect if and when data-tagging comes back into style. > > > > Data tagging has been used for a long time in various programming > > language implementations. It works nicely with power-of-two word > > sizes; moreover, on 64-bit architectures (with byte addressing, but > > that's all of them), we can have 8 different tag values without > > reducing the addressible memory. > > > > the cost of LSB tagging is, however, that any such pointers can no > longer be byte-aligned, which is an issue for things like tagged > pointers into arrays or pointing at string characters. > > granted, yes, MSB tagging reduces the size of the address space, but > this isn't really an issue on current 64-bit targets. granted, it isn't > really a good option for 32-bit targets much outside of microcontroller > development at this point. > > which is better likely depends on the use-case. > > for object-pointers and LSB tagging, you can actually get by using > 4-bits as a tag if all objects are 16-byte aligned. Perhaps folk here aren't aware that both MSB and LSB tagging are a bit passé now. The current hotness for 64 bit machines is "NaN encoding". The problem is that (for a 64 bit machine) either MSB or LSB tagging prevents one of the tagged types from being a double precision float. This seems like a shame. So, it has become common to take advantage of the fact that although the IEEE standard provides for 2^53 - 1 NaN values (all zeroes means infinity), all common hardware and libraries only use one of them. That means you can hide some extra tag bits inside the significand along with a boolean or a character or a pointer that while not the full 64 bits is bigger than any current or near term address space. Or an integer that, while again not a full 64 bits, is quite significantly bigger than 32 bits (52 bits is possible).
[toc] | [prev] | [next] | [standalone]
| From | Terje Mathisen <terje.mathisen@tmsw.no> |
|---|---|
| Date | 2015-08-25 21:27 +0200 |
| Message-ID | <mrifin$tto$1@speranza.aioe.org> |
| In reply to | #29360 |
Bruce Hoult wrote: > Perhaps folk here aren't aware that both MSB and LSB tagging are a > bit pass� now. The current hotness for 64 bit machines is "NaN > encoding". > > The problem is that (for a 64 bit machine) either MSB or LSB tagging > prevents one of the tagged types from being a double precision float. > This seems like a shame. > > So, it has become common to take advantage of the fact that although > the IEEE standard provides for 2^53 - 1 NaN values (all zeroes means > infinity), all common hardware and libraries only use one of them. At least two values, since the standard differentiates between QNaN and SNaN (quiet and signalling), afair the top non-hidden mantissa bit is used for this? If that bit is zero, some other mantissa bit must be set instead to make it a NaN, i.e. you cannot encode a 52-bit pointer that can be null. > > That means you can hide some extra tag bits inside the significand > along with a boolean or a character or a pointer that while not the > full 64 bits is bigger than any current or near term address space. > Or an integer that, while again not a full 64 bits, is quite > significantly bigger than 32 bits (52 bits is possible). > Anyway, this means that you have maximum 52 bits to play with, possibly just 51 if you have to support both types of NaNs. Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
[toc] | [prev] | [next] | [standalone]
| From | Bruce Hoult <bruce.hoult@gmail.com> |
|---|---|
| Date | 2015-08-25 13:51 -0700 |
| Message-ID | <6bc88861-8971-4ac8-8753-18fcea9f7b8f@googlegroups.com> |
| In reply to | #29376 |
On Tuesday, August 25, 2015 at 10:27:24 PM UTC+3, Terje Mathisen wrote: > Bruce Hoult wrote: > > Perhaps folk here aren't aware that both MSB and LSB tagging are a > > bit pass� now. The current hotness for 64 bit machines is "NaN > > encoding". > > > > The problem is that (for a 64 bit machine) either MSB or LSB tagging > > prevents one of the tagged types from being a double precision float. > > This seems like a shame. > > > > So, it has become common to take advantage of the fact that although > > the IEEE standard provides for 2^53 - 1 NaN values (all zeroes means > > infinity), all common hardware and libraries only use one of them. > > At least two values, since the standard differentiates between QNaN and > SNaN (quiet and signalling), afair the top non-hidden mantissa bit is > used for this? If that bit is zero, some other mantissa bit must be set > instead to make it a NaN, i.e. you cannot encode a 52-bit pointer that > can be null. > > > > > That means you can hide some extra tag bits inside the significand > > along with a boolean or a character or a pointer that while not the > > full 64 bits is bigger than any current or near term address space. > > Or an integer that, while again not a full 64 bits, is quite > > significantly bigger than 32 bits (52 bits is possible). > > > Anyway, this means that you have maximum 52 bits to play with, possibly > just 51 if you have to support both types of NaNs. Yes, both recent standards and all common prior processors use the top bit of the significand to determine quiet or signalling, though MIPS and SPARC used the opposite sense to everyone else. There is no need to lose the null pointer. It is not specified what the canonical NaN value is, but portable code can generate one easily enough at program startup and encode or decode pointers by XORing them with the canonical Nan (with added pointer tag bits, if they are non-zero).
[toc] | [prev] | [next] | [standalone]
| From | Terje Mathisen <terje.mathisen@tmsw.no> |
|---|---|
| Date | 2015-08-26 08:31 +0200 |
| Message-ID | <mrjmfq$ie2$1@speranza.aioe.org> |
| In reply to | #29382 |
Bruce Hoult wrote: > On Tuesday, August 25, 2015 at 10:27:24 PM UTC+3, Terje Mathisen >> Anyway, this means that you have maximum 52 bits to play with, >> possibly just 51 if you have to support both types of NaNs. Oops, that's wrong: It should be 51/50 bits! > > Yes, both recent standards and all common prior processors use the > top bit of the significand to determine quiet or signalling, though > MIPS and SPARC used the opposite sense to everyone else. > > There is no need to lose the null pointer. It is not specified what > the canonical NaN value is, but portable code can generate one easily > enough at program startup and encode or decode pointers by XORing > them with the canonical Nan (with added pointer tag bits, if they are > non-zero). At this point you are into seriously convoluted terrain, I'd much rather settle for 50 bits available for everything, i.e: x:11111111111:00(50 x 0) Inf x:11111111111:10(50 bits QNaN payload) x:11111111111:01(50 bits SNaN payload) x:11111111111:11(50 bits encoded pointer/int/whatever) With 48 bits as a reasonable limit for memory addressing we should be OK, right? Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
[toc] | [prev] | [next] | [standalone]
| From | MitchAlsup <MitchAlsup@aol.com> |
|---|---|
| Date | 2015-08-25 16:56 -0700 |
| Message-ID | <a3bce459-0824-4196-bc10-f4dab3c1c6a5@googlegroups.com> |
| In reply to | #29360 |
On Tuesday, August 25, 2015 at 12:30:08 PM UTC-5, Bruce Hoult wrote:
> So, it has become common to take advantage of the fact that although the IEEE standard provides for 2^53 - 1 NaN values (all zeroes means infinity), all common hardware and libraries only use one of them.
I might come as a shock to people, but up to 30% of the flip-flops in a
moderately pipelined FPU are there simply to propagate NaN values from
the input to the output of the FPU. For this reason, several to most
GPUs will not fully support NaNs other than producing a NaN as output
when a NaN is input or propagated. Thus, in effect, there are only 2
NaNs {S or Q}.
Mitch
[toc] | [prev] | [next] | [standalone]
| From | Ivan Godard <ivan@millcomputing.com> |
|---|---|
| Date | 2015-08-25 17:36 -0700 |
| Message-ID | <mrj1ic$pvm$1@dont-email.me> |
| In reply to | #29396 |
On 8/25/2015 4:56 PM, MitchAlsup wrote:
> On Tuesday, August 25, 2015 at 12:30:08 PM UTC-5, Bruce Hoult wrote:
>
>> So, it has become common to take advantage of the fact that although the IEEE standard provides for 2^53 - 1 NaN values (all zeroes means infinity), all common hardware and libraries only use one of them.
>
> I might come as a shock to people, but up to 30% of the flip-flops in a
> moderately pipelined FPU are there simply to propagate NaN values from
> the input to the output of the FPU. For this reason, several to most
> GPUs will not fully support NaNs other than producing a NaN as output
> when a NaN is input or propagated. Thus, in effect, there are only 2
> NaNs {S or Q}.
>
> Mitch
>
When used for type encoding, the pseudo-NaNs don't go to the FPU, so the
fact that they are not passed through is irrelevant.
[toc] | [prev] | [next] | [standalone]
| From | BGB <cr88192@hotmail.com> |
|---|---|
| Date | 2015-08-25 20:10 -0500 |
| Message-ID | <mrj3uv$87f$1@news.albasani.net> |
| In reply to | #29360 |
On 8/25/2015 12:30 PM, Bruce Hoult wrote: > On Tuesday, August 25, 2015 at 5:37:05 PM UTC+3, BGB wrote: >> On 8/25/2015 4:04 AM, Anton Ertl wrote: >>> MitchAlsup <MitchAlsup@aol.com> writes: >>>> On Monday, August 24, 2015 at 11:45:28 AM UTC-5, Terje Mathisen wrote: >>>>> >>>>> Power of two have won, deal with it. >>>> >>>> This is correct in terms of data widths and address widths. >>>> This is incorrect if and when data-tagging comes back into style. >>> >>> Data tagging has been used for a long time in various programming >>> language implementations. It works nicely with power-of-two word >>> sizes; moreover, on 64-bit architectures (with byte addressing, but >>> that's all of them), we can have 8 different tag values without >>> reducing the addressible memory. >>> >> >> the cost of LSB tagging is, however, that any such pointers can no >> longer be byte-aligned, which is an issue for things like tagged >> pointers into arrays or pointing at string characters. >> >> granted, yes, MSB tagging reduces the size of the address space, but >> this isn't really an issue on current 64-bit targets. granted, it isn't >> really a good option for 32-bit targets much outside of microcontroller >> development at this point. >> >> which is better likely depends on the use-case. >> >> for object-pointers and LSB tagging, you can actually get by using >> 4-bits as a tag if all objects are 16-byte aligned. > > Perhaps folk here aren't aware that both MSB and LSB tagging are a bit passé now. The current hotness for 64 bit machines is "NaN encoding". > > The problem is that (for a 64 bit machine) either MSB or LSB tagging prevents one of the tagged types from being a double precision float. This seems like a shame. > > So, it has become common to take advantage of the fact that although the IEEE standard provides for 2^53 - 1 NaN values (all zeroes means infinity), all common hardware and libraries only use one of them. > > That means you can hide some extra tag bits inside the significand along with a boolean or a character or a pointer that while not the full 64 bits is bigger than any current or near term address space. Or an integer that, while again not a full 64 bits, is quite significantly bigger than 32 bits (52 bits is possible). > NaN tagging is only really "good" if the vast majority of you datums are floating point numbers. if integer and pointer data are the primary types (and the language keeps integer and floating point numbers as distinct types), NaN tagging isn't nearly such a great solution anymore. I have an MSB tagging scheme that basically passes through a large part of the double space at full precision, as well as having plenty of space for pointers, and a 62-bit fixnum type.
[toc] | [prev] | [next] | [standalone]
| From | Bruce Hoult <bruce.hoult@gmail.com> |
|---|---|
| Date | 2015-08-26 02:41 -0700 |
| Message-ID | <618a86b1-3cff-47e0-bef2-85b96c85bf18@googlegroups.com> |
| In reply to | #29399 |
On Wednesday, August 26, 2015 at 4:20:06 AM UTC+3, BGB wrote: > On 8/25/2015 12:30 PM, Bruce Hoult wrote: > > On Tuesday, August 25, 2015 at 5:37:05 PM UTC+3, BGB wrote: > >> On 8/25/2015 4:04 AM, Anton Ertl wrote: > >>> MitchAlsup <MitchAlsup@aol.com> writes: > >>>> On Monday, August 24, 2015 at 11:45:28 AM UTC-5, Terje Mathisen wrote: > >>>>> > >>>>> Power of two have won, deal with it. > >>>> > >>>> This is correct in terms of data widths and address widths. > >>>> This is incorrect if and when data-tagging comes back into style. > >>> > >>> Data tagging has been used for a long time in various programming > >>> language implementations. It works nicely with power-of-two word > >>> sizes; moreover, on 64-bit architectures (with byte addressing, but > >>> that's all of them), we can have 8 different tag values without > >>> reducing the addressible memory. > >>> > >> > >> the cost of LSB tagging is, however, that any such pointers can no > >> longer be byte-aligned, which is an issue for things like tagged > >> pointers into arrays or pointing at string characters. > >> > >> granted, yes, MSB tagging reduces the size of the address space, but > >> this isn't really an issue on current 64-bit targets. granted, it isn't > >> really a good option for 32-bit targets much outside of microcontroller > >> development at this point. > >> > >> which is better likely depends on the use-case. > >> > >> for object-pointers and LSB tagging, you can actually get by using > >> 4-bits as a tag if all objects are 16-byte aligned. > > > > Perhaps folk here aren't aware that both MSB and LSB tagging are a bit passé now. The current hotness for 64 bit machines is "NaN encoding". > > > > The problem is that (for a 64 bit machine) either MSB or LSB tagging prevents one of the tagged types from being a double precision float. This seems like a shame. > > > > So, it has become common to take advantage of the fact that although the IEEE standard provides for 2^53 - 1 NaN values (all zeroes means infinity), all common hardware and libraries only use one of them. > > > > That means you can hide some extra tag bits inside the significand along with a boolean or a character or a pointer that while not the full 64 bits is bigger than any current or near term address space. Or an integer that, while again not a full 64 bits, is quite significantly bigger than 32 bits (52 bits is possible). > > > > NaN tagging is only really "good" if the vast majority of you datums are > floating point numbers. if integer and pointer data are the primary > types (and the language keeps integer and floating point numbers as > distinct types), NaN tagging isn't nearly such a great solution anymore. > > I have an MSB tagging scheme that basically passes through a large part > of the double space at full precision, as well as having plenty of space > for pointers, and a 62-bit fixnum type. Steal the top bit from the exponent? I guess 1e150 or so ought to be enough for most purposes.
[toc] | [prev] | [next] | [standalone]
Page 3 of 7 — ← Prev page 1 2 [3] 4 5 6 7 Next page →
Back to top | Article view | comp.arch
csiph-web