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


Groups > comp.arch > #29292 > unrolled thread

Four significant reasons for a 12X word size

Started byjim.brakefield@ieee.org
First post2015-08-21 20:11 -0700
Last post2015-08-27 20:00 -0700
Articles 20 on this page of 138 — 30 participants

Back to article view | Back to comp.arch


Contents

  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 6 of 7 — ← Prev page 1 2 3 4 5 [6] 7  Next page →


#29553

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-08-29 07:41 -0700
Message-ID<07c1b011-cada-40b3-8c93-b0cce2f9c912@googlegroups.com>
In reply to#29526
On Friday, August 28, 2015 at 9:22:59 AM UTC-6, Stefan Monnier wrote:

> UTF-16 leads to code which fails if you use characters outside of the
> base-plane, because they're rare enough that the programmers just didn't
> take it into account.

This is true.

But while there are applications that *require* handling the entire Unicode 
repertoire, I think that much of the time, using either ISO 8859-1 or the 
Unicode base plane in 16-bit representation is more appropriate - that is, have 
a character data type which has a constant width and basically *no* internal 
semantics (characters in _this_ range ar longer).

John Savard

[toc] | [prev] | [next] | [standalone]


#29555

FromTerje Mathisen <terje.mathisen@tmsw.no>
Date2015-08-29 19:12 +0200
Message-ID<mrsp62$5qs$2@speranza.aioe.org>
In reply to#29553
Quadibloc wrote:
> On Friday, August 28, 2015 at 9:22:59 AM UTC-6, Stefan Monnier wrote:
>
>> UTF-16 leads to code which fails if you use characters outside of the
>> base-plane, because they're rare enough that the programmers just didn't
>> take it into account.
>
> This is true.
>
> But while there are applications that *require* handling the entire Unicode
> repertoire, I think that much of the time, using either ISO 8859-1 or the
> Unicode base plane in 16-bit representation is more appropriate - that is, have
> a character data type which has a constant width and basically *no* internal
> semantics (characters in _this_ range ar longer).

Even in 8859 you have characters like the german double s which can be 
either one or two characters depending upon the current case (upper/lower).

Terje

-- 
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"

[toc] | [prev] | [next] | [standalone]


#29556

Fromnmm@needham.csi.cam.ac.uk (Nick Maclaren)
Date2015-08-29 18:23 +0100
Message-ID<mrsprd$hdg$1@needham.csi.cam.ac.uk>
In reply to#29555
In article <mrsp62$5qs$2@speranza.aioe.org>,
Terje Mathisen  <terje.mathisen@tmsw.no> wrote:
>Quadibloc wrote:
>> On Friday, August 28, 2015 at 9:22:59 AM UTC-6, Stefan Monnier wrote:
>>
>>> UTF-16 leads to code which fails if you use characters outside of the
>>> base-plane, because they're rare enough that the programmers just didn't
>>> take it into account.
>>
>> This is true.
>>
>> But while there are applications that *require* handling the entire Unicode
>> repertoire, I think that much of the time, using either ISO 8859-1 or the
>> Unicode base plane in 16-bit representation is more appropriate - that is, have
>> a character data type which has a constant width and basically *no* internal
>> semantics (characters in _this_ range ar longer).
>
>Even in 8859 you have characters like the german double s which can be 
>either one or two characters depending upon the current case (upper/lower).

Plus lots of circumstances where the treatment of characters depends
on how they are used in a word, and the context of the word.  The
one closest to me is how to collate Maclaren and Machinery :-)  One
of the big mistakes of the locale and Unicode people was to assume
that strings are just sequences of characters, because they (usually)
are in English.


Regards,
Nick Maclaren.

[toc] | [prev] | [next] | [standalone]


#29576

FromBGB <cr88192@hotmail.com>
Date2015-08-29 17:17 -0500
Message-ID<mrtbc4$shq$1@news.albasani.net>
In reply to#29556
On 8/29/2015 12:23 PM, Nick Maclaren wrote:
> In article <mrsp62$5qs$2@speranza.aioe.org>,
> Terje Mathisen  <terje.mathisen@tmsw.no> wrote:
>> Quadibloc wrote:
>>> On Friday, August 28, 2015 at 9:22:59 AM UTC-6, Stefan Monnier wrote:
>>>
>>>> UTF-16 leads to code which fails if you use characters outside of the
>>>> base-plane, because they're rare enough that the programmers just didn't
>>>> take it into account.
>>>
>>> This is true.
>>>
>>> But while there are applications that *require* handling the entire Unicode
>>> repertoire, I think that much of the time, using either ISO 8859-1 or the
>>> Unicode base plane in 16-bit representation is more appropriate - that is, have
>>> a character data type which has a constant width and basically *no* internal
>>> semantics (characters in _this_ range ar longer).
>>
>> Even in 8859 you have characters like the german double s which can be
>> either one or two characters depending upon the current case (upper/lower).
>
> Plus lots of circumstances where the treatment of characters depends
> on how they are used in a word, and the context of the word.  The
> one closest to me is how to collate Maclaren and Machinery :-)  One
> of the big mistakes of the locale and Unicode people was to assume
> that strings are just sequences of characters, because they (usually)
> are in English.
>

though, FWIW, all this is a bit outside the scope of what I aim to 
address here.

like, less in terms of natural-language-accurate collation, and more 
akin to something like 'wcscmp()' or similar...


[toc] | [prev] | [next] | [standalone]


#29569

FromGeorge Neuner <gneuner2@comcast.net>
Date2015-08-29 14:57 -0400
Message-ID<p304uatjjesnvttf0tvpfvuue67c0nrjnp@4ax.com>
In reply to#29553
On Sat, 29 Aug 2015 07:41:50 -0700 (PDT), Quadibloc
<jsavard@ecn.ab.ca> wrote:

>On Friday, August 28, 2015 at 9:22:59 AM UTC-6, Stefan Monnier wrote:
>
>> UTF-16 leads to code which fails if you use characters outside of the
>> base-plane, because they're rare enough that the programmers just didn't
>> take it into account.
>
>This is true.
>
>But while there are applications that *require* handling the entire Unicode 
>repertoire, I think that much of the time, using either ISO 8859-1 or the 
>Unicode base plane in 16-bit representation is more appropriate - that is, have 
>a character data type which has a constant width and basically *no* internal 
>semantics (characters in _this_ range ar longer).
>
>John Savard

Don't know if this is of interest ... it's an abbreviated survey of
ways to handle wide characters.

http://trac.sacrideo.us/wg/wiki/StringRepresentations

George

[toc] | [prev] | [next] | [standalone]


#29573

Fromjim.brakefield@ieee.org
Date2015-08-29 12:40 -0700
Message-ID<d6d1333b-3381-4dfe-b22a-e89d5a48f738@googlegroups.com>
In reply to#29569
On Saturday, August 29, 2015 at 1:57:42 PM UTC-5, George Neuner wrote:
> On Sat, 29 Aug 2015 07:41:50 -0700 (PDT), Quadibloc
> <jsavard@...> wrote:
> 
> >On Friday, August 28, 2015 at 9:22:59 AM UTC-6, Stefan Monnier wrote:
> >
> >> UTF-16 leads to code which fails if you use characters outside of the
> >> base-plane, because they're rare enough that the programmers just didn't
> >> take it into account.
> >
> >This is true.
> >
> >But while there are applications that *require* handling the entire Unicode 
> >repertoire, I think that much of the time, using either ISO 8859-1 or the 
> >Unicode base plane in 16-bit representation is more appropriate - that is, have 
> >a character data type which has a constant width and basically *no* internal 
> >semantics (characters in _this_ range ar longer).
> >
> >John Savard
> 
> Don't know if this is of interest ... it's an abbreviated survey of
> ways to handle wide characters.
> 
> http://trac.sacrideo.us/wg/wiki/StringRepresentations
> 
> George

So, how often does one need more than 12-bits to enumerate all the unique characters in a text?
Or more generally, letting Unicode code points be remapped so that the text uses the minimal bits per character, what are the frequency histograms?
(remapping gives one minimum space "flat" encoding as well as supporting any collating sequence)

Jim Brakefield

[toc] | [prev] | [next] | [standalone]


#29575

FromTerje Mathisen <terje.mathisen@tmsw.no>
Date2015-08-30 00:05 +0200
Message-ID<mrtaar$coc$1@speranza.aioe.org>
In reply to#29573
jim.brakefield@ieee.org wrote:
> On Saturday, August 29, 2015 at 1:57:42 PM UTC-5, George Neuner wrote:
>> On Sat, 29 Aug 2015 07:41:50 -0700 (PDT), Quadibloc
>> <jsavard@...> wrote:
>>
>>> On Friday, August 28, 2015 at 9:22:59 AM UTC-6, Stefan Monnier wrote:
>>>
>>>> UTF-16 leads to code which fails if you use characters outside of the
>>>> base-plane, because they're rare enough that the programmers just didn't
>>>> take it into account.
>>>
>>> This is true.
>>>
>>> But while there are applications that *require* handling the entire Unicode
>>> repertoire, I think that much of the time, using either ISO 8859-1 or the
>>> Unicode base plane in 16-bit representation is more appropriate - that is, have
>>> a character data type which has a constant width and basically *no* internal
>>> semantics (characters in _this_ range ar longer).
>>>
>>> John Savard
>>
>> Don't know if this is of interest ... it's an abbreviated survey of
>> ways to handle wide characters.
>>
>> http://trac.sacrideo.us/wg/wiki/StringRepresentations
>>
>> George
>
> So, how often does one need more than 12-bits to enumerate all the unique characters in a text?
> Or more generally, letting Unicode code points be remapped so that the text uses the minimal bits per character, what are the frequency histograms?
> (remapping gives one minimum space "flat" encoding as well as supporting any collating sequence)

The Record1 approach seems good when nearly all text is 7-bit ascii, but 
as soon as you get a single international character you immediately 
triple (!) the size of the needed storage. Seems like a very high cost 
just to guarantee O(1), i.e. I would _much_ rather allow random access 
to become O(log N) while keeping the storage overhead in the single 
percentage point range.

They do suggest exactly the same tree-structured indexed utf-8 as a good 
compromise between access time and space usage.

Terje

-- 
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"

[toc] | [prev] | [next] | [standalone]


#29326

FromEricP <ThatWouldBeTelling@thevillage.com>
Date2015-08-24 13:16 -0400
Message-ID<xkICx.37207$%u.20620@fx06.iad>
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.
> 

You don't have to store the bit values contiguously.
For 12 bit chars you could have an array of 8 bit bytes at positive
array indexes and 4 bit nibbles, packed 2 per byte, at ones-compliment
negative index.


                [nibble-(~1)]
                [nibble-(~0)]
    array_ptr-> [byte-0]
                [byte-1]


and use special bit extract/insert ops to reassemble and disassemble
the 12 bit char values.

Eric

[toc] | [prev] | [next] | [standalone]


#29327

FromEricP <ThatWouldBeTelling@thevillage.com>
Date2015-08-24 13:29 -0400
Message-ID<ywICx.70879$Kz4.18246@fx18.iad>
In reply to#29326
EricP wrote:
> 
> You don't have to store the bit values contiguously.
> For 12 bit chars you could have an array of 8 bit bytes at positive
> array indexes and 4 bit nibbles, packed 2 per byte, at ones-compliment
> negative index.
> 
> 
>                [nibble-(~1)]
>                [nibble-(~0)]
>    array_ptr-> [byte-0]
>                [byte-1]
> 
> 
> and use special bit extract/insert ops to reassemble and disassemble
> the 12 bit char values.

Hmmm... the way I drew that is confusing (those were intended
as dashes not minus signs). Let me try again.

                  nibble[~1]
                  nibble[~0]
       array_ptr->byte[0]
                  byte[1]

Eric

[toc] | [prev] | [next] | [standalone]


#29332

Frommrs@kithrup.com (Mike Stump)
Date2015-08-24 21:32 +0000
Message-ID<ntLvun.1sz0@kithrup.com>
In reply to#29326
In article <xkICx.37207$%u.20620@fx06.iad>,
EricP  <ThatWouldBeTelling@thevillage.com> 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.
>> 
>
>You don't have to store the bit values contiguously.
>For 12 bit chars you could have an array of 8 bit bytes at positive
>array indexes and 4 bit nibbles, packed 2 per byte, at ones-compliment
>negative index.
>
>
>                [nibble-(~1)]
>                [nibble-(~0)]
>    array_ptr-> [byte-0]
>                [byte-1]
>
>
>and use special bit extract/insert ops to reassemble and disassemble
>the 12 bit char values.

The above can't _ever_ work.  But, thanks for playing.

[toc] | [prev] | [next] | [standalone]


#29339

FromTerje Mathisen <terje.mathisen@tmsw.no>
Date2015-08-25 08:49 +0200
Message-ID<mrh36h$8kh$1@speranza.aioe.org>
In reply to#29332
mrs@kithrup.com (Mike Stump) wrote:
> In article <xkICx.37207$%u.20620@fx06.iad>,
> EricP  <ThatWouldBeTelling@thevillage.com> wrote:
>> You don't have to store the bit values contiguously.
>> For 12 bit chars you could have an array of 8 bit bytes at positive
>> array indexes and 4 bit nibbles, packed 2 per byte, at ones-compliment
>> negative index.
>>
>>
>>                 [nibble-(~1)]
>>                 [nibble-(~0)]
>>     array_ptr-> [byte-0]
>>                 [byte-1]
>>
>>
>> and use special bit extract/insert ops to reassemble and disassemble
>> the 12 bit char values.
>
> The above can't _ever_ work.  But, thanks for playing.
>
Of course it would work, although I would prefer a memory controller 
that split all ram into three approximately equal chunks, then treat the 
first two as the byte array and the third as the final nibble array.

This setup would require a (fixed at boot/ram scan) base offset for that 
nibble store, but otherwise run at more or less the same speed as 
current controllers.

Terje

-- 
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"

[toc] | [prev] | [next] | [standalone]


#29390

Frommrs@kithrup.com (Mike Stump)
Date2015-08-25 22:43 +0000
Message-ID<ntnttB.1JzM@kithrup.com>
In reply to#29339
In article <mrh36h$8kh$1@speranza.aioe.org>,
Terje Mathisen  <terje.mathisen@tmsw.no> wrote:
>mrs@kithrup.com (Mike Stump) wrote:
>> In article <xkICx.37207$%u.20620@fx06.iad>,
>> EricP  <ThatWouldBeTelling@thevillage.com> wrote:
>>> You don't have to store the bit values contiguously.
>>> For 12 bit chars you could have an array of 8 bit bytes at positive
>>> array indexes and 4 bit nibbles, packed 2 per byte, at ones-compliment
>>> negative index.
>>>
>>>
>>>                 [nibble-(~1)]
>>>                 [nibble-(~0)]
>>>     array_ptr-> [byte-0]
>>>                 [byte-1]
>>>
>>>
>>> and use special bit extract/insert ops to reassemble and disassemble
>>> the 12 bit char values.
>>
>> The above can't _ever_ work.  But, thanks for playing.
>>
>Of course it would work

No.  There are things called language standards, and they don't permit
it.  C is one such langauge standard.  C++ is another.  As long as you
don't need one of those things, it would be fine, but, without those,
the architecture is unlikely to ever be more than an oddity.

[toc] | [prev] | [next] | [standalone]


#29401

FromEricP <ThatWouldBeTelling@thevillage.com>
Date2015-08-25 21:55 -0400
Message-ID<H19Dx.434$xW3.334@fx26.iad>
In reply to#29390
Mike Stump wrote:
> In article <mrh36h$8kh$1@speranza.aioe.org>,
> Terje Mathisen  <terje.mathisen@tmsw.no> wrote:
>> mrs@kithrup.com (Mike Stump) wrote:
>>> In article <xkICx.37207$%u.20620@fx06.iad>,
>>> EricP  <ThatWouldBeTelling@thevillage.com> wrote:
>>>> You don't have to store the bit values contiguously.
>>>> For 12 bit chars you could have an array of 8 bit bytes at positive
>>>> array indexes and 4 bit nibbles, packed 2 per byte, at ones-compliment
>>>> negative index.
>>>>
>>>>
>>>>                 [nibble-(~1)]
>>>>                 [nibble-(~0)]
>>>>     array_ptr-> [byte-0]
>>>>                 [byte-1]
>>>>
>>>>
>>>> and use special bit extract/insert ops to reassemble and disassemble
>>>> the 12 bit char values.
>>> The above can't _ever_ work.  But, thanks for playing.
>>>
>> Of course it would work
> 
> No.  There are things called language standards, and they don't permit
> it.  C is one such langauge standard.  C++ is another.  As long as you
> don't need one of those things, it would be fine, but, without those,
> the architecture is unlikely to ever be more than an oddity.

In C the only native way to do this is if the hardware supports
12 bit bytes. Otherwise you're screwed.

The obvious alternative *functional* solution is a bit vector containing
a packed array of 12-bit scalars (like Ada packed arrays).

Packed arrays have a problem when you pass an array slice to a
subroutine because the slice won't fall on byte boundary so the
usual method of a descriptor with a buffer pointer, biased offset by
the array lower bound, requires an additional field for a bit-offset bias.
If you also wanted Fortran style strides, those would be bitwise strides.

It would need 2 sets of library routines, one for ISA's that only allow
natural aligned memory access, and one for cpus allowing unaligned
access to leverage the hardwares existing shift-merge logic.

Now since packed arrays need descriptors and access routines anyway,
the question is, are there other alternatives organizations with
lower access cost?
It occurred to me that maybe by separating the 12-bit char pieces
that the access manipulations might be easier.

Anyway, it was worth tossing out there just to challenge
the entrenched hidebound orthodoxy.

Eric

[toc] | [prev] | [next] | [standalone]


#29402

Frompaul wallich <pw@panix.com>
Date2015-08-25 22:12 -0400
Message-ID<mrj7b2$99g$1@reader1.panix.com>
In reply to#29401
On 8/25/15 9:55 PM, EricP wrote:
> Mike Stump wrote:
>> In article <mrh36h$8kh$1@speranza.aioe.org>,
>> Terje Mathisen  <terje.mathisen@tmsw.no> wrote:
>>> mrs@kithrup.com (Mike Stump) wrote:
>>>> In article <xkICx.37207$%u.20620@fx06.iad>,
>>>> EricP  <ThatWouldBeTelling@thevillage.com> wrote:
>>>>> You don't have to store the bit values contiguously.
>>>>> For 12 bit chars you could have an array of 8 bit bytes at positive
>>>>> array indexes and 4 bit nibbles, packed 2 per byte, at ones-compliment
>>>>> negative index.
>>>>>
>>>>>
>>>>>                 [nibble-(~1)]
>>>>>                 [nibble-(~0)]
>>>>>     array_ptr-> [byte-0]
>>>>>                 [byte-1]
>>>>>
>>>>>
>>>>> and use special bit extract/insert ops to reassemble and disassemble
>>>>> the 12 bit char values.
>>>> The above can't _ever_ work.  But, thanks for playing.
>>>>
>>> Of course it would work
>>
>> No.  There are things called language standards, and they don't permit
>> it.  C is one such langauge standard.  C++ is another.  As long as you
>> don't need one of those things, it would be fine, but, without those,
>> the architecture is unlikely to ever be more than an oddity.
>
> In C the only native way to do this is if the hardware supports
> 12 bit bytes. Otherwise you're screwed.
[...]
> Now since packed arrays need descriptors and access routines anyway,
> the question is, are there other alternatives organizations with
> lower access cost?
> It occurred to me that maybe by separating the 12-bit char pieces
> that the access manipulations might be easier.
>
> Anyway, it was worth tossing out there just to challenge
> the entrenched hidebound orthodoxy.

Things like this raise the question of where you are drawing the 
boundary between the hardware and the software. If you can enforce the 
convention that everything goes through the access routines (and that 
all the idioms that would bypass those routines get translated into 
two-chunk accesses) does that count as native hardware support?

paul

[toc] | [prev] | [next] | [standalone]


#29437

FromEricP <ThatWouldBeTelling@thevillage.com>
Date2015-08-26 13:54 -0400
Message-ID<L3nDx.3350$xW3.885@fx26.iad>
In reply to#29402
paul wallich wrote:
> 
> Things like this raise the question of where you are drawing the 
> boundary between the hardware and the software. If you can enforce the 
> convention that everything goes through the access routines (and that 
> all the idioms that would bypass those routines get translated into 
> two-chunk accesses) does that count as native hardware support?

If bit field operations were sufficiently popular it might
justify having risc-ish instructions to make them easier
to manipulate without requiring subroutines.

The problem is the consequences of them propagate though the uArch.
Just off the top of my head....

1) A bit field address would be register pair, one with a byte address
and a second register with a 3 bit offset to the field start.
Field size would be given by a constant in instructions where needed,
sign or zero extended.

2) To add an offset to a BF address usually takes 4 or more instructions:
add to the offset reg, extract and sign extend and shift the bit offset
above 3 to a temp reg, mask the bit offset to 3 bits,
add the temp value to the byte address.

That could all be done in a single instruction.
Problem is it needs 3 source registers and 2 dest registers which
complicates the renamer compared to the usual 2 source, 1 dest,
and requires more read and write ports on the register file,
and you have to carry more operand values around.

3) A BF Load would use the BF address register pair,
a constant count of the bit field size, a flag for sign/zero extend,
and a dest register.

You need to decide if more bit addressing modes like displacement,
PC relative or indexed were justified. Could be more read ports.

If the bit field extract logic was in the load path then the existing
byte shift extract logic becomes bit shift extract logic which
means 8 times the muxes and adds propagation delay to every instruction.
Alternatively we use the just existing load path byte shift logic
and route the result through the barrel shifter for bit shifts,
mask and sign extend, which adds extra instruction states/uOps.

Bit fields that straddled cache lines would be read non-atomically
in any order (low part read first or second).
Those 2 separate fields need to be assembled someplace
maybe a special register attached to the barrel shifter
to avoid dealing with partial register updates everywhere,
before transfer to the final dest register.

The decision for either 1 or 2 field extract read sequences is
made based on whether the dynamic bit address value and constant
field size straddling a cache line. That makes the uOp sequencing
more complicated by introducing conditionals.

4) Similarly for BF Store.



Its all complicated enough and low usage enough that I can see
most ISA's saying 'meh - do it in software'.

Eric

[toc] | [prev] | [next] | [standalone]


#29440

FromStephen Fuld <SFuld@alumni.cmu.edu.invalid>
Date2015-08-26 11:47 -0700
Message-ID<mrl1gr$a6c$1@dont-email.me>
In reply to#29437
On 8/26/2015 10:54 AM, EricP wrote:
> paul wallich wrote:
>>
>> Things like this raise the question of where you are drawing the
>> boundary between the hardware and the software. If you can enforce the
>> convention that everything goes through the access routines (and that
>> all the idioms that would bypass those routines get translated into
>> two-chunk accesses) does that count as native hardware support?
>
> If bit field operations were sufficiently popular it might
> justify having risc-ish instructions to make them easier
> to manipulate without requiring subroutines.
>
> The problem is the consequences of them propagate though the uArch.
> Just off the top of my head....
>

snip proposed solution.

How about just having a different load (and store) instruction that 
worked the same as traditional load/store with the exception that the 
address is given in bits, not bytes?  Then incrementing the bit field 
address is as simple as incrementing the byte address is now, i.e. just 
add a constant to the index register.  This obviates the need for an 
extra register in your proposal, however ...


> Its all complicated enough and low usage enough that I can see
> most ISA's saying 'meh - do it in software'.


This (as well as some, but not all, of the hardware caveats you 
discussed but I snipped) applies to my proposal as well.  :-(




-- 
  - Stephen Fuld
(e-mail address disguised to prevent spam)

[toc] | [prev] | [next] | [standalone]


#29482

Frommac <acolvin@efunct.com>
Date2015-08-27 16:15 +0000
Message-ID<2057589979462384494.671389acolvin-efunct.com@news.eternal-september.org>
In reply to#29440
> How about just having a different load (and store) instruction that
> worked the same as traditional load/store with the exception that the
> address is given in bits, not bytes?  Then incrementing the bit field
> address is as simple as incrementing the byte address is now, i.e. just
> add a constant to the index register.  This obviates the need for an
> extra register in your proposal, however ...

Honeywell L6 mini did index address scaling by 32/16/8/1-bit operand size,
on a 16-bit word-addressed machine.
So you couldn't address an arbitrary bit in one address, but you could as
an offset to a word address.

It turned out to be worth the extra hassle of using word operations if you
were operating on more than one bit. In a bitmap allocator, for example.

[toc] | [prev] | [next] | [standalone]


#29489

FromStephen Fuld <SFuld@alumni.cmu.edu.invalid>
Date2015-08-27 10:44 -0700
Message-ID<mrni6u$jt1$1@dont-email.me>
In reply to#29482
On 8/27/2015 9:15 AM, mac wrote:
>> How about just having a different load (and store) instruction that
>> worked the same as traditional load/store with the exception that the
>> address is given in bits, not bytes?  Then incrementing the bit field
>> address is as simple as incrementing the byte address is now, i.e. just
>> add a constant to the index register.  This obviates the need for an
>> extra register in your proposal, however ...
>
> Honeywell L6 mini did index address scaling by 32/16/8/1-bit operand size,
> on a 16-bit word-addressed machine.
> So you couldn't address an arbitrary bit in one address, but you could as
> an offset to a word address.

Interesting.  I didn't know that.



> It turned out to be worth the extra hassle of using word operations if you
> were operating on more than one bit. In a bitmap allocator, for example.


Yes, I should have been more explicit.  You need to specify the number 
of bits in the field somewhere in the instruction, or perhaps in another 
register.



-- 
  - Stephen Fuld
(e-mail address disguised to prevent spam)

[toc] | [prev] | [next] | [standalone]


#29513

Fromrpw3@rpw3.org (Rob Warnock)
Date2015-08-28 06:09 +0000
Message-ID<55dffb27$0$1644$742ec2ed@news.sonic.net>
In reply to#29489
Stephen Fuld  <SFuld@Alumni.cmu.edu.invalid> wrote:
+---------------
| Yes, I should have been more explicit.  You need to specify
| the number of bits in the field somewhere in the instruction,
| or perhaps in another register.
+---------------

This is, of course, precisely what the venerable DEC PDP-10 did,
with the LDB [LoaD Byte], DPB, IBP, ILDB, & IDPB instructions
specifying the address of a "byte pointer", which in turn specified
the byte width, position within word, and word adddress [complete
with further indexing & indirection, if desired].

    http://pdp10.nocrew.org/docs/instruction-set/Byte.html

The fact that both the original instruction [LDB, etc.] and
the byte pointer could be indexed/indirected gave tremendous
flexibility when dealing with various byte sizes packed in
multiple ways into word arrays.


-Rob

-----
Rob Warnock		<rpw3@rpw3.org>
627 26th Avenue		<http://rpw3.org/>
San Mateo, CA 94403

[toc] | [prev] | [next] | [standalone]


#29527

FromEricP <ThatWouldBeTelling@thevillage.com>
Date2015-08-28 12:23 -0400
Message-ID<3X%Dx.665$VJ.543@fx19.iad>
In reply to#29440
Stephen Fuld wrote:
> On 8/26/2015 10:54 AM, EricP wrote:
>> paul wallich wrote:
>>>
>>> Things like this raise the question of where you are drawing the
>>> boundary between the hardware and the software. If you can enforce the
>>> convention that everything goes through the access routines (and that
>>> all the idioms that would bypass those routines get translated into
>>> two-chunk accesses) does that count as native hardware support?
>>
>> If bit field operations were sufficiently popular it might
>> justify having risc-ish instructions to make them easier
>> to manipulate without requiring subroutines.
>>
>> The problem is the consequences of them propagate though the uArch.
>> Just off the top of my head....
>>
> 
> snip proposed solution.
> 
> How about just having a different load (and store) instruction that 
> worked the same as traditional load/store with the exception that the 
> address is given in bits, not bytes?  Then incrementing the bit field 
> address is as simple as incrementing the byte address is now, i.e. just 
> add a constant to the index register.  This obviates the need for an 
> extra register in your proposal, however ...

I was thinking of 32 bits which is too small to loose 3 address bits.
But I think I was also over complicating it slightly.
A bit field load or store can be similar to indexed address,
needs a base byte address and a 32 bit unsigned bit offset.
That would handle bit vectors up to 512MB without anything special.
For other addressing modes like PC relative, just do a LEA first
to set the base byte address.
So load/store really only needs 2 read ports for the address like indexed.

So on 64 bit cpus, for just bit field instructions, you want a
bit-wise address that runs from [50:0] sign extended to 63?

Yeah, that could work but could cause other problems.
For example, a page fault examining the address might expect
and validate it as the usual [47:0] sign extended.
So now you have to carry a "type' flag with the address.

>> Its all complicated enough and low usage enough that I can see
>> most ISA's saying 'meh - do it in software'.
> 
> 
> This (as well as some, but not all, of the hardware caveats you 
> discussed but I snipped) applies to my proposal as well.  :-(

Yeah, it still has to deal with the fact that a bit field
might straddle 2 ints (32 or 64 bits), but you only want to
do 2 fetches/stores if it actually does straddle.
That might be handled all within the load/store unit but then
I wouldn't want to assume the internal data path must be double
width to route the 2 values for load, 3 values for store,
to the barrel shifter for field extract or field insert.

Eric

[toc] | [prev] | [next] | [standalone]


Page 6 of 7 — ← Prev page 1 2 3 4 5 [6] 7  Next page →

Back to top | Article view | comp.arch


csiph-web