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


Groups > comp.arch > #31581 > unrolled thread

Between CISC and RISC

Started byQuadibloc <jsavard@ecn.ab.ca>
First post2015-12-07 20:13 -0800
Last post2015-12-26 10:07 -0800
Articles 20 on this page of 134 — 26 participants

Back to article view | Back to comp.arch


Contents

  Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-07 20:13 -0800
    Re: Between CISC and RISC Bruce Hoult <bruce.hoult@gmail.com> - 2015-12-08 01:50 -0800
      Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-08 04:19 -0800
        Re: Between CISC and RISC Bruce Hoult <bruce.hoult@gmail.com> - 2015-12-08 04:57 -0800
          Re: Between CISC and RISC algrant109@gmail.com - 2015-12-11 12:57 -0800
            Re: Between CISC and RISC Bruce Hoult <bruce.hoult@gmail.com> - 2015-12-11 13:44 -0800
            Re: Between CISC and RISC Ivan Godard <ivan@millcomputing.com> - 2015-12-11 15:40 -0800
              Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-11 21:13 -0800
                Re: Between CISC and RISC Bruce Hoult <bruce.hoult@gmail.com> - 2015-12-12 04:14 -0800
                  Re: Between CISC and RISC already5chosen@yahoo.com - 2015-12-12 12:59 -0800
              Re: Between CISC and RISC algrant109@gmail.com - 2015-12-14 08:44 -0800
          Re: Between CISC and RISC Exophase <exophase@gmail.com> - 2015-12-15 13:23 -0800
            Re: Between CISC and RISC Bruce Hoult <bruce.hoult@gmail.com> - 2015-12-16 02:13 -0800
    Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-08 04:17 -0800
      Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-09 05:35 -0800
        Re: Between CISC and RISC jacko <jackokring@gmail.com> - 2015-12-09 08:56 -0800
        Re: Between CISC and RISC Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2015-12-09 10:30 -0800
          Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-09 11:06 -0800
            Re: Between CISC and RISC Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2015-12-09 12:17 -0800
              Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-09 12:56 -0800
                Re: Between CISC and RISC Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2015-12-10 11:44 -0800
                  Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-10 22:50 -0800
                    Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-10 23:06 -0800
                    Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-11 06:01 -0800
          Re: Between CISC and RISC David W Schroth <davidschroth@harrietmanor.com> - 2015-12-10 21:37 -0600
          Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-11 10:37 -0800
            Re: Between CISC and RISC Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2015-12-11 15:19 -0800
              Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-11 21:20 -0800
              Re: Between CISC and RISC David W Schroth <davidschroth@harrietmanor.com> - 2015-12-12 18:22 -0600
          Re: Between CISC and RISC anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-12 23:20 +0000
            Re: Between CISC and RISC Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-13 07:48 +0100
              Re: Between CISC and RISC anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-13 18:00 +0000
                Re: Between CISC and RISC Ivan Godard <ivan@millcomputing.com> - 2015-12-13 11:37 -0800
                Re: Between CISC and RISC Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-13 21:57 +0100
            Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-13 07:19 -0800
              Re: ones complement, was Between John Levine <johnl@iecc.com> - 2015-12-13 15:32 +0000
                Re: ones complement, was Between Quadibloc <jsavard@ecn.ab.ca> - 2015-12-13 08:32 -0800
                  Re: ones complement, was Between John Levine <johnl@iecc.com> - 2015-12-13 16:52 +0000
                    Re: ones complement, was Between Bruce Hoult <bruce.hoult@gmail.com> - 2015-12-13 08:56 -0800
                      Re: ones complement, was Between John Levine <johnl@iecc.com> - 2015-12-13 17:03 +0000
                        Re: ones complement, was Between Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2015-12-13 10:12 -0700
                      Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-13 21:51 +0100
                        Re: ones complement, was Between Jan Coombs <jan_coombs@murmic.plus.com> - 2015-12-13 22:18 +0000
                Re: ones complement, was Between MitchAlsup <MitchAlsup@aol.com> - 2015-12-13 10:15 -0800
                  Re: ones complement, was Between Megol <golem960@gmail.com> - 2015-12-13 12:18 -0800
                  Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-13 22:00 +0100
                    Re: ones complement, was Between Ivan Godard <ivan@millcomputing.com> - 2015-12-13 13:07 -0800
                      Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-14 10:15 +0100
                        Re: ones complement, was Between Ivan Godard <ivan@millcomputing.com> - 2015-12-14 01:39 -0800
                        Re: ones complement, was Between already5chosen@yahoo.com - 2015-12-14 01:59 -0800
                          Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-14 14:21 +0100
                            Re: ones complement, was Between nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-14 14:21 +0000
                            Re: ones complement, was Between already5chosen@yahoo.com - 2015-12-14 07:03 -0800
                              Re: ones complement, was Between nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-14 15:50 +0000
                                Re: ones complement, was Between MitchAlsup <MitchAlsup@aol.com> - 2015-12-14 16:34 -0800
                                  Re: ones complement, was Between Ivan Godard <ivan@millcomputing.com> - 2015-12-14 18:42 -0800
                                    Re: ones complement, was Between nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-15 09:13 +0000
                                    Re: ones complement, was Between nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-15 09:25 +0000
                                  Re: ones complement, was Between nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-15 08:53 +0000
                              Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-14 18:25 +0100
                                Re: ones complement, was Between Bruce Hoult <bruce.hoult@gmail.com> - 2015-12-15 02:20 -0800
                                  Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-15 11:58 +0100
                                Re: ones complement, was Between already5chosen@yahoo.com - 2015-12-20 02:45 -0800
                                  Re: ones complement, was Between already5chosen@yahoo.com - 2015-12-20 03:11 -0800
                                  Re: ones complement, was Between nj_kruse@me.com (Niels Jørgen Kruse) - 2015-12-20 14:34 +0100
                                    Re: ones complement, was Between already5chosen@yahoo.com - 2015-12-20 05:57 -0800
                                      Re: ones complement, was Between MitchAlsup <MitchAlsup@aol.com> - 2015-12-20 12:12 -0800
                                        Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-21 15:33 +0100
                                          Re: ones complement, was Between nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-21 14:58 +0000
                                            Re: ones complement, was Between Quadibloc <jsavard@ecn.ab.ca> - 2015-12-21 10:06 -0800
                                            Re: ones complement, was Between MitchAlsup <MitchAlsup@aol.com> - 2015-12-21 15:48 -0800
                                              Re: ones complement, was Between Ivan Godard <ivan@millcomputing.com> - 2015-12-21 17:13 -0800
                                  Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-20 17:47 +0100
                                    Re: ones complement, was Between jacko <jackokring@gmail.com> - 2015-12-20 10:09 -0800
                                    Re: ones complement, was Between Jean-Marc Bourguet <jm@bourguet.org> - 2015-12-20 20:09 +0100
                                  Re: ones complement, was Between Chris Gray <cg@GraySage.COM> - 2015-12-20 11:02 -0700
                                    Re: ones complement, was Between anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-21 14:11 +0000
                                      Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-21 16:08 +0100
                                        Re: ones complement, was Between nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-21 16:03 +0000
                                          Re: ones complement, was Between anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-21 16:18 +0000
                                            Re: ones complement, was Between nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-21 17:53 +0000
                                          Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-21 21:29 +0100
                                        Re: ones complement, was Between anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-21 15:57 +0000
                                          Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-21 21:25 +0100
                    Re: ones complement, was Between John Levine <johnl@iecc.com> - 2015-12-14 02:11 +0000
                      Re: ones complement, was Between Quadibloc <jsavard@ecn.ab.ca> - 2015-12-14 00:27 -0800
                  Re: ones complement, was Between Quadibloc <jsavard@ecn.ab.ca> - 2015-12-13 17:16 -0800
                    Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-14 10:20 +0100
                      Re: ones complement, was Between anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-14 10:29 +0000
                        Re: ones complement, was Between anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-14 12:17 +0000
                          Re: ones complement, was Between MitchAlsup <MitchAlsup@aol.com> - 2015-12-14 06:40 -0800
                        Re: ones complement, was Between Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-14 14:26 +0100
                  Re: ones complement, was Between anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-14 08:09 +0000
            Re: Between CISC and RISC mrs@kithrup.com (Mike Stump) - 2015-12-14 00:11 +0000
        Re: Between CISC and RISC MitchAlsup <MitchAlsup@aol.com> - 2015-12-09 17:30 -0800
      Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-14 00:17 -0800
        Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-14 05:48 -0800
    Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-15 15:32 -0800
      Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-21 12:57 -0800
        Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-21 19:00 -0800
          Re: Between CISC and RISC Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-22 10:26 +0100
            Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-22 06:39 -0800
            Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-23 10:17 -0800
              Re: Between CISC and RISC Jean-Marc Bourguet <jm@bourguet.org> - 2015-12-23 19:55 +0100
                Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-23 17:15 -0800
                  Re: Between CISC and RISC Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-24 10:27 +0100
                    Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-24 04:50 -0800
                    Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-24 07:37 -0800
                      Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-24 09:47 -0800
                        Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-24 11:47 -0800
                          Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-24 12:48 -0800
                            Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-24 18:56 -0800
                              Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-25 09:34 -0800
                            Re: Between CISC and RISC anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-25 17:57 +0000
                              Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-25 10:42 -0800
                                Re: Between CISC and RISC Bruce Hoult <bruce.hoult@gmail.com> - 2015-12-26 03:29 -0800
                                Re: Between CISC and RISC Jakob Brundin <jakbru@gmail.com> - 2015-12-26 07:23 -0800
                                  Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-26 09:54 -0800
                                Re: Between CISC and RISC Anne & Lynn Wheeler <lynn@garlic.com> - 2015-12-26 16:18 -0800
                            Re: Between CISC and RISC MitchAlsup <MitchAlsup@aol.com> - 2016-01-31 10:17 -0800
                              Re: Between CISC and RISC paul wallich <pw@panix.com> - 2016-01-31 13:39 -0500
                                Re: Between CISC and RISC MitchAlsup <MitchAlsup@aol.com> - 2016-01-31 19:16 -0800
                              Re: Between CISC and RISC anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-01 12:43 +0000
                                Re: Between CISC and RISC MitchAlsup <MitchAlsup@aol.com> - 2016-02-01 06:44 -0800
                    Re: Between CISC and RISC Ivan Godard <ivan@millcomputing.com> - 2015-12-24 13:03 -0800
                      Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-24 16:35 -0800
                        Re: Between CISC and RISC Ivan Godard <ivan@millcomputing.com> - 2015-12-24 16:45 -0800
                    Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2016-01-31 07:14 -0800
                  Re: Between CISC and RISC MitchAlsup <MitchAlsup@aol.com> - 2015-12-25 07:21 -0800
                    Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-25 07:39 -0800
                    Re: Between CISC and RISC George Neuner <gneuner2@comcast.net> - 2015-12-25 11:53 -0500
                      Re: Between CISC and RISC MitchAlsup <MitchAlsup@aol.com> - 2016-01-31 10:10 -0800
                        Re: Between CISC and RISC Robert Wessel <robertwessel2@yahoo.com> - 2016-01-31 23:34 -0600
            Re: Between CISC and RISC Quadibloc <jsavard@ecn.ab.ca> - 2015-12-26 10:07 -0800

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


#31730

FromStephen Fuld <SFuld@alumni.cmu.edu.invalid>
Date2015-12-10 11:44 -0800
Message-ID<n4ckhu$73l$1@dont-email.me>
In reply to#31689
On 12/9/2015 12:56 PM, Quadibloc wrote:
> On Wednesday, December 9, 2015 at 1:17:30 PM UTC-7, Stephen Fuld wrote:
>> On 12/9/2015 11:06 AM, Quadibloc wrote:
>
>>> (Not that a
>>> smaller performance drop really solves that problem.)
>
>> Right!  :-)
>
> But you see my goal,


Yes


> although I can't see much hope of achieving it.


I agree, though not for the reason of your "dufferness".  With all the 
different modes, etc. your design will add lots of additional gate 
delays, thus necessitating a slower clock rate than competitive designs. 
  That coupled with the fact that your CPU would be using commercially 
available fabs, which are a generation or so behind Intel, means your 
CPUs wouldn't be performance competitive with the latest X86.  At least 
that is what Unisys found, and their designs are simpler than yours.  So 
it would still be faster for someone to run some emulation software on 
the latest X86 than to use your CPU.


> A world in which the _commodity_ chip, the one that's in the PC on
> your desk, is flexible enough... so that emulating something else
> is almost as easy a choice as running Linux instead of Windows.

Well, given various emulating software, the choice isn't very hard.



> So one might have a Linux desktop... with applications running on
> several different emulated processors in different windows, as a
> matter of course rather than something strange.

Taking out the idea that someone who just wanted to run different 
emulated processors in different windows might be a bit strange  :-), 
you can do that now.



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

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


#31737

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-10 22:50 -0800
Message-ID<a1c31e25-8e8a-47c9-a84f-86b0a7354089@googlegroups.com>
In reply to#31730
On Thursday, December 10, 2015 at 12:44:21 PM UTC-7, Stephen Fuld wrote:

> I agree, though not for the reason of your "dufferness".  With all the 
> different modes, etc. your design will add lots of additional gate 
> delays, thus necessitating a slower clock rate than competitive designs. 

This is true enough.

At the moment, I hadn't even added 24-bit operation to my latest design, 
although a closely-related CISC design did have a note on how the instruction 
formats for memory-reference instructions would have to be changed for that, 
and the same technique could be applied to it.

At the moment, however, even though I have packed a complete instruction set (I 
think, not having allocated opcodes thoroughly means I could have slipped up 
somewhere) more densely than in most ISAs, unlike Ivan Godard with the Mill, 
what I have is a pretty conventional architecture which doesn't offer much that 
you don't already have from many other conventional ISAs.

I'd say *that's* even *more* likely to be fatal to the prospects of my design 
than any 24-bit and 36-bit weirdness.

But at the moment, the design approaches a RISC architecture - it's a 
load-store architecture, it has banks of 32 registers - but it privileges the 
first 8 registers of each bank to aid code compactness, so the set isn't fully 
orthogonal, and the instructions are variable length - 16 or 32 bits. Exactly 
half the opcode space is given to each kind, so the distinction is the simplest 
one possible; the first bit indicates the length.

Now I'm thinking about how to add features.

One case I considered was adding support for the System/360 legacy 
floating-point format. Analyzing that, I was drawn to the conclusion that the 
best way to do it would be to add a "load 128" instruction (and its 
counterpart, "store 128") to load data into a pair of integer registers for 
extended precision a la the Model 85... and to use the integer registers, but 
the floating ALU, for that kind of floating-point number, as well as for any 
other non-IEEE-478 float formats.

As for the word length weirdness, that's still on the back burner as a way to add value.

At present, 72-bit DIMMs command a high price premium over 64-bit DIMMs. I've 
noted that if one uses a set of _five_ 64-bit DIMMs, the overhead for ECC can 
leave 4 1/2 of those five usable for data. Which works out nicely for a 36-bit 
word.

I will agree that the potential advantages ("enough" precision where 32-bit 
floats are inadequate, but faster than 64-bit floats - or emulation) of a 
different data width aren't very appealing.

As the least awkward way to handle 32-bit words in a 36-bit memory is just to 
leave 4 bits unused, though, a potential _important_ application turns up.

By golly, we can add *tag bits* to the architecture!

Every 16 bits could have two tag bits attached. Say:

00: data
01: code - not the first 16 bits of an instruction
10: code - the first 16 bits of an instruction, but not a legitimate branch target
11: code - a permitted branch target

Wow! Fine-grained execution control!

And we could modify the granularity a bit. Code and data are usually in 
different pages as handled by the paging mechanism anyways.

So let's have a 64-bit granularity there. 64 bits of data would be associated with eight tag bits.

The first two are 00, that means it's data and not code.

One bit would indicate whether or not indexed accesses are permitted - is this 
part of an array, or is it just a named simple variable?

And the other five would indicate the type of the data. With (usually 
nonprivileged) instructions to waive that, because one doesn't want to trap to 
the OS just to implement the EQUIVALENCE statement or aliasing.

This is all well and good, but it's still not bounds checking; someone could still overflow the bounds of one array to access another array in this model.

Well, remember the "array mode" I've mentioned? Where if one uses base register 
zero, instead of that meaning absolute addressing (like on the 360) or making 
it just another base register, why not make it special - base register zero 
points to a table of array pointers, so you don't have to use up one base 
register per array if you have a bunch of arrays bigger than 64K?

Again, this is hardly a _new_ idea... Burroughs did it ages ago... why not put 
array descriptors (maybe really simple ones, just the address followed by the 
upper bound) in that table instead? Bounds-checked arrays in hardware! Yay!

So one saves money on RAM and gets important security features.

And a way of accessing 36-bit memory is now needed... in order that the 
*linking loader* program is able to work.

Now, the chip could boot into a legacy mode where the execution prevention 
feature is turned off - smaller versions of the chip for embedded use and the 
like might not have that feature. (Bad idea, I know, security is needed more when you're embedded...)

But what about - especially when I'm talking so much about emulation - people 
who want to use JIT techniques?

Well, just as a program might be tagged "Loader", which lets it do the system 
call "Change 36-bit data memory to 32-bit code memory without clearing it", it 
might also be tagged "Hypervisor" in the operating system. So you want to do 
JIT? Fine, but do it in a sandbox.

Of course, hypervisors still let virtual programs read and write to files that 
the rest of the OS can read, usually, so they're useful and not toys, and so a 
hypervisor can be badly written and have security holes... but, still, we seem 
to be heading in a direction that might keep hacking "down to a dull roar".

John Savard

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


#31738

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-10 23:06 -0800
Message-ID<216395c4-2bbf-45f6-8a6b-87cc6f68248c@googlegroups.com>
In reply to#31737
On Thursday, December 10, 2015 at 11:50:14 PM UTC-7, I wrote:

> One case I considered was adding support for the System/360 legacy 
> floating-point format. Analyzing that, I was drawn to the conclusion that the 
> best way to do it would be to add a "load 128" instruction (and its 
> counterpart, "store 128") to load data into a pair of integer registers for 
> extended precision a la the Model 85... and to use the integer registers, but 
> the floating ALU, for that kind of floating-point number, as well as for any 
> other non-IEEE-478 float formats.

In this regard, other things I'm thinking about are how to squeeze in support 
for longer instructions without compromising the speed of instruction decoding, 
and given the fact that all the opcode space is allocated to 16-bit and 32-bit 
instructions already.

One thing that was suggested to me was to jump over the stuff that's to be 
decoded differently - for example, jump over a 32-bit, 64-bit, or whatever 
immediate for an instruction.

I have a 16-bit conditional relative branch instruction. Instead of using the 000 opcode for either a NOP (branch never) or branch to subroutine, I could use it for the "skip stuff" instruction.

Let's say I only added immediates, and I skipped over the immediate only. The 
instruction that was the branch target would be modified so that if the 
all-ones code was used for a source register (the source or operand register), 
then the immediate would be used instead of the contents of that register.

So there's a 32-bit number I jump over.

As it happens, its first bit is a 0, and its 16th bit is a 1.

Oops, the skip stuff instruction has to be treated like a real live branch, and 
it forces the decode of the instructions to start over again, because the 
decoder was fooled into thinking the branch target was the second half of a 
32-bit instruction!

And if I want more flexibility, as is needed if I also want modified 
instructions (i.e. modify load byte to get load address, add Cray-style large 
vector instructions) I probably need to use a 32-bit instruction (some opcode 
space is left among the 16-bit immediate instructions, as I really only need a 
5-bit opcode for them).

So I haven't yet settled on a good idea to add, as a supplementary extra 
outside the normal instruction decoding, longer instructions in a way that 
doesn't mess up normal instruction decoding.

I think I'll have to throw up my hands, accept that the special stuff can be 
slower, and in each case use a 'branch and link to code decoded differently 
that allows this extra stuff'. But I still haven't worked out how to do so with 
an absolute minimum of violence - and so that even the special code can run 
with high performance.

But at the moment, I am thinking that perhaps the least bad option might be this:

Let the special code consist of blocks, 256 bits long, where the first 16 bits 
are bits that say 'an instruction starts here' - in the block, one can have 
both regular 16-bit and 32-bit instructions _and_ longer instructions, since 
now decode is still rapid, and the longer instructions don't interfere with it.

One can also have wrong-first-bit 16-bit and 32-bit instructions to extend the 
instruction repertoire in those blocks.

John Savard

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


#31743

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-11 06:01 -0800
Message-ID<9a46eead-1d9b-4c90-a502-ae142a2b711c@googlegroups.com>
In reply to#31737
On Thursday, December 10, 2015 at 11:50:14 PM UTC-7, I wrote:

> The first two are 00, that means it's data and not code.

> One bit would indicate whether or not indexed accesses are permitted - is this 
> part of an array, or is it just a named simple variable?

> And the other five would indicate the type of the data. With (usually 
> nonprivileged) instructions to waive that, because one doesn't want to trap to 
> the OS just to implement the EQUIVALENCE statement or aliasing.

Further thought indicates that the alternate code format, which allows longer 
instructions, will have to be distinguished by the tag bits as well, to prevent 
hanky-panky.

So, the format for data items should be:

00ttttrx

where tttt indicates the type of the data, and may range through the twelve values from 0000 to 1011;

r is reserved for future use; and

x indicates that indexed access is permitted.

0011 will then be used to start the alternate format program segments; the tags 
will have the form 0011abcd where for the four 16-bit units in a 64-bit 
doubleword each of abcd, if one, indicates a branch target (since where the 
instructions start is now indicated in-band).

Or, rather, in those first 16 bits of every 256, a 1 bit will indicate the 
_end_ of an instruction. This is for the same reason that I had previously 
decided that, for DSP mode in a previous related architecture, the block mark 
bit needs to indicate the end of a block - so that allowing instructions, now, 
instead of execution blocks, to cross physical block boundaries will not slow 
decoding.

And if I want to add a DSP mode to this architecture?

In that case, DSP-mode code would also get the tag 0011 because it would 
consist of new-format instructions each of which are 15 units of 16 bits long, 
which do not cross physical block boundaries. The first 16 bits of the 
instruction would contain bits indicating which of the seven 32-bit 
instructions in a 256-bit physical block and in the instruction are predicated; 
the seven 32-bit instructions would, if not predicated, have the normal form of 
32-bit instructions. (One opcode for the 16-bit immediate mode would allow 16 
bit instructions to be placed in a 32-bit slot.) But the first bit would be the 
block mark bit for simultaneous execution blocks.

So I think I've found a way to make these extensions without subverting the 
tagging feature and without slowing down instruction decoding.

John Savard

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


#31735

FromDavid W Schroth <davidschroth@harrietmanor.com>
Date2015-12-10 21:37 -0600
Message-ID<drgk6bds2nsabms9vpgr57ceggvechoo28@4ax.com>
In reply to#31683
On Wed, 9 Dec 2015 10:30:25 -0800, Stephen Fuld
<SFuld@alumni.cmu.edu.invalid> wrote:

>On 12/9/2015 5:35 AM, Quadibloc wrote:
>> On Tuesday, December 8, 2015 at 5:17:12 AM UTC-7, Quadibloc wrote:
>>> On Monday, December 7, 2015 at 9:13:47 PM UTC-7, Quadibloc wrote:
>>>> Well, I've added another outline of an ISA to my page at
>>><snip>
>
>I understand your goal, but there are real world problems with obtaining 
>it.  A cautionary tale:
>
>Unisys used to make their own custom CMOS chips for (both lines of) 
>their processors.  They had a fab and everything.
>
>Then came the availability of relatively low cost "fabs for hire", i.e. 
>TSMC and the like.  They soon discovered that using one of those was a 
>better choice, as they could keep up with the (almost) latest process 
>without the cost of updating their own fab plant every few years.  So 
>they could produce faster processors, as well as evolve their 
>architectures, at lower cost.  This was the solution for several years.
>
>Then they discovered that, at least with the low end Libra (old 
>Burroughs) architecture, they could do better by writing a custom 
>software layer that ran on X86 processors.  The custom software was an 
>emulator that allowed running of the OS and applications on standard X86 
>processors.  This gave them good performance at much lower cost.  So at 
>this point, the low end Libra ran on X86 but the high end Libra and all 
>Dorado (old Univac) systems ran on custom CMOS fabbed by TSMC.
>
>But the X86 performance kept improving, and quite quickly relative to 
>what they could get from their custom CMOS.  So the emulation gradually 
>replaced the custom CMOS at higher and higher performance Libra systems. 
>At one point it got good enough to start emulating the Dorado 
>Architecture (harder than Libra to make go fast due to Libra being byte 
>oriented vs Dorado's 36 bit word).  Again, it started at the low end, 
>but worked its way up.
>
>Finally, Unisys announced that they would no longer make custom CMOS 
>processors as they could be competitive and satisfy their customers 
>completely with emulation of both lines on X86.
>
>
>
>> Failing that, the new architecture that dethrones the x86 must have the
>> emulation power to come within a whisker of recreating that world, but in the
>> confines of a _single_ machine!
>
>
>
>Now, what you are proposing is a new architecture that is more complex 
>than any current one and that you have little/no experience optimizing 
>the hardware for, and expect to be similar in performance to when 
>emulated on X86. Experience says it simply won't happen.
>
>
>
><snip>

While it is probably not germane to the point you are trying to make,
as someone who was in the middle of what you are describing (at least
on the 2200 side), I feel obliged to observe that while the story you
present seems like a plausible match to what was visible outside of
the company, a large number of the statements you present as fact just
ain't so.

And I'm really not at liberty to go into any detail.

Regards,

David W. Schroth

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


#31745

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-11 10:37 -0800
Message-ID<38c3c4cd-67c7-48bb-8f8c-eb157381dff4@googlegroups.com>
In reply to#31683
On Wednesday, December 9, 2015 at 11:30:32 AM UTC-7, Stephen Fuld wrote:

> Finally, Unisys announced that they would no longer make custom CMOS 
> processors as they could be competitive and satisfy their customers 
> completely with emulation of both lines on X86.

Given the comment from the fellow who was not at liberty to go into details... I 
suppose he is claiming that it was well within the capabilities of Unisys to do 
what IBM still does with System z: produce custom silicon. And they just stopped 
doing it because they didn't see a point, not because they couldn't.

I can believe that, simply because another element of the Unisys story is that 
in order to enhance the efficiency of x86 emulated operation, they went and 
*migrated a lot of their software* to run on the native x86 hardware directly 
instead of running in emulation.

So the emulation layer is there to ensure that their customers are completely 
supported, it isn't the mainstay or the totality of the systems.

I'm looking to fill two very contradictory requirements; to have very simple 
instruction decoding on the one hand, but also to have an extensible 
instruction set that can be expanded to include whatever kind of instructions 
one might care to pile in.

I think I've actually made some progress - so that while my ISA as a whole 
might not every be particularly interesting, it might still have some good 
ideas others would find useful.

John Savard

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


#31751

FromStephen Fuld <SFuld@alumni.cmu.edu.invalid>
Date2015-12-11 15:19 -0800
Message-ID<n4flhb$66s$1@dont-email.me>
In reply to#31745
On 12/11/2015 10:37 AM, Quadibloc wrote:
> On Wednesday, December 9, 2015 at 11:30:32 AM UTC-7, Stephen Fuld wrote:
>
>> Finally, Unisys announced that they would no longer make custom CMOS
>> processors as they could be competitive and satisfy their customers
>> completely with emulation of both lines on X86.
>
> Given the comment from the fellow who was not at liberty to go into details... I
> suppose he is claiming that it was well within the capabilities of Unisys to do
> what IBM still does with System z: produce custom silicon. And they just stopped
> doing it because they didn't see a point, not because they couldn't.

Of course.  I believe they decided it was just not in the company's 
financial interest to do so.  Note that IBM has a much larger base to 
spread the cost of development, fab, etc. over.


> I can believe that, simply because another element of the Unisys story is that
> in order to enhance the efficiency of x86 emulated operation, they went and
> *migrated a lot of their software* to run on the native x86 hardware directly
> instead of running in emulation.

Perhaps, and I hope David can comment on this, but I doubt it. 
Remember, they have an installed base of systems with their own 
architecture chips that they still have to support.


> So the emulation layer is there to ensure that their customers are completely
> supported, it isn't the mainstay or the totality of the systems.

I'm not sure what you mean by this.




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

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


#31757

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-11 21:20 -0800
Message-ID<3ef2dca5-af30-429b-8390-3e0b316c3179@googlegroups.com>
In reply to#31751
On Friday, December 11, 2015 at 4:19:32 PM UTC-7, Stephen Fuld wrote:
> On 12/11/2015 10:37 AM, Quadibloc wrote:
 
> > So the emulation layer is there to ensure that their customers are completely
> > supported, it isn't the mainstay or the totality of the systems.

> I'm not sure what you mean by this.

Basically, once they get the rest of the OS migrated, and finish the migration 
of their major applications, they would be in a position to offer systems with 
mainframe-style applications and mainframe-style reliability that not only were 
built out of COTS x86 chips, but which presented the x86 ISA as their native 
ISA, with the emulation layer deprecated or absent.

That is, they could be heading this way, by migrating their assets, so that the 
value they provide is still present - so that such a shift would not mean that 
they've basically died and turned into yet another commodity x86 server vendor 
(the market IBM abandoned with System x only very recently, long after 
abandoning the consumer PC market).

Admittedly, I can't be _sure_ such plans aren't a trifle over-optimistic.

John Savard

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


#31779

FromDavid W Schroth <davidschroth@harrietmanor.com>
Date2015-12-12 18:22 -0600
Message-ID<1eep6bphrvfv09nu2sgn9jitg3j2fcnnjc@4ax.com>
In reply to#31751
On Fri, 11 Dec 2015 15:19:20 -0800, Stephen Fuld
<SFuld@alumni.cmu.edu.invalid> wrote:

>On 12/11/2015 10:37 AM, Quadibloc wrote:
>> On Wednesday, December 9, 2015 at 11:30:32 AM UTC-7, Stephen Fuld wrote:
>>
>>> Finally, Unisys announced that they would no longer make custom CMOS
>>> processors as they could be competitive and satisfy their customers
>>> completely with emulation of both lines on X86.
>>
>> Given the comment from the fellow who was not at liberty to go into details... I
>> suppose he is claiming that it was well within the capabilities of Unisys to do
>> what IBM still does with System z: produce custom silicon. And they just stopped
>> doing it because they didn't see a point, not because they couldn't.
>
>Of course.  I believe they decided it was just not in the company's 
>financial interest to do so.  Note that IBM has a much larger base to 
>spread the cost of development, fab, etc. over.
>
>
>> I can believe that, simply because another element of the Unisys story is that
>> in order to enhance the efficiency of x86 emulated operation, they went and
>> *migrated a lot of their software* to run on the native x86 hardware directly
>> instead of running in emulation.
>
>Perhaps, and I hope David can comment on this, but I doubt it. 
>Remember, they have an installed base of systems with their own 
>architecture chips that they still have to support.
>

I am unaware of any 2200 software that has been migrated to run on the
native x86 hardware directly.  My experience suggests that doing so is
a *lot* more difficult than managers believe.
>
>> So the emulation layer is there to ensure that their customers are completely
>> supported, it isn't the mainstay or the totality of the systems.
>
>I'm not sure what you mean by this.

Regardless of what he meant, he is full of hooey as far as I am
concerned.

Regards,

David W. Schroth

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


#31778

Fromanton@mips.complang.tuwien.ac.at (Anton Ertl)
Date2015-12-12 23:20 +0000
Message-ID<2015Dec13.002021@mips.complang.tuwien.ac.at>
In reply to#31683
Stephen Fuld <SFuld@alumni.cmu.edu.invalid> writes:
>Unisys used to make their own custom CMOS chips for (both lines of) 
>their processors.  They had a fab and everything.
>
>Then came the availability of relatively low cost "fabs for hire", i.e. 
>TSMC and the like.  They soon discovered that using one of those was a 
>better choice, as they could keep up with the (almost) latest process 
>without the cost of updating their own fab plant every few years.  So 
>they could produce faster processors, as well as evolve their 
>architectures, at lower cost.  This was the solution for several years.
>
>Then they discovered that, at least with the low end Libra (old 
>Burroughs) architecture, they could do better by writing a custom 
>software layer that ran on X86 processors.  The custom software was an 
>emulator that allowed running of the OS and applications on standard X86 
>processors.  This gave them good performance at much lower cost.  So at 
>this point, the low end Libra ran on X86 but the high end Libra and all 
>Dorado (old Univac) systems ran on custom CMOS fabbed by TSMC.
>
>But the X86 performance kept improving, and quite quickly relative to 
>what they could get from their custom CMOS.  So the emulation gradually 
>replaced the custom CMOS at higher and higher performance Libra systems. 
>At one point it got good enough to start emulating the Dorado 
>Architecture (harder than Libra to make go fast due to Libra being byte 
>oriented vs Dorado's 36 bit word).

Emulating a word-addressed machine on a byte-addressed machine is
easier than the other way 'round.  I guess the bigger problem with the
Univac architecture was the ones-complement integers.  Emulating that
on a twos-complement machine is probably not quite cheap.

>  Again, it started at the low end, 
>but worked its way up.
>
>Finally, Unisys announced that they would no longer make custom CMOS 
>processors as they could be competitive and satisfy their customers 
>completely with emulation of both lines on X86.

Interesting.  So this line of ones-complement machines goes the way of
the Dodo (not that it was particularly relevant outside its own
software universe).  Any ones-complement architectures left?

- 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]


#31786

FromTerje Mathisen <terje.mathisen@tmsw.no>
Date2015-12-13 07:48 +0100
Message-ID<n4j4cl$osa$1@speranza.aioe.org>
In reply to#31778
Anton Ertl wrote:
> Stephen Fuld <SFuld@alumni.cmu.edu.invalid> writes:
>> But the X86 performance kept improving, and quite quickly relative to
>> what they could get from their custom CMOS.  So the emulation gradually
>> replaced the custom CMOS at higher and higher performance Libra systems.
>> At one point it got good enough to start emulating the Dorado
>> Architecture (harder than Libra to make go fast due to Libra being byte
>> oriented vs Dorado's 36 bit word).
>
> Emulating a word-addressed machine on a byte-addressed machine is
> easier than the other way 'round.  I guess the bigger problem with the
> Univac architecture was the ones-complement integers.  Emulating that
> on a twos-complement machine is probably not quite cheap.

Emulating 36-bit integers is probably easier using 64-bit ints:

Keep them in native (twos-complement) form internally, then use 
pre-/post-adjustment code for instructions which would depend on the 
exact bit layout, i.e. logical & shift ops?

I am guessing that most uses of integers would be for things like loop 
counting and array indices, which is why I wouldn't keep them in 
ones-complement form internally.

>
>>   Again, it started at the low end,
>> but worked its way up.
>>
>> Finally, Unisys announced that they would no longer make custom CMOS
>> processors as they could be competitive and satisfy their customers
>> completely with emulation of both lines on X86.
>
> Interesting.  So this line of ones-complement machines goes the way of
> the Dodo (not that it was particularly relevant outside its own
> software universe).  Any ones-complement architectures left?

Just sign+magnitude, i.e. FP afaik.

Terje


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

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


#31811

Fromanton@mips.complang.tuwien.ac.at (Anton Ertl)
Date2015-12-13 18:00 +0000
Message-ID<2015Dec13.190041@mips.complang.tuwien.ac.at>
In reply to#31786
Terje Mathisen <terje.mathisen@tmsw.no> writes:
>Anton Ertl wrote:
>> Stephen Fuld <SFuld@alumni.cmu.edu.invalid> writes:
>>> But the X86 performance kept improving, and quite quickly relative to
>>> what they could get from their custom CMOS.  So the emulation gradually
>>> replaced the custom CMOS at higher and higher performance Libra systems.
>>> At one point it got good enough to start emulating the Dorado
>>> Architecture (harder than Libra to make go fast due to Libra being byte
>>> oriented vs Dorado's 36 bit word).
>>
>> Emulating a word-addressed machine on a byte-addressed machine is
>> easier than the other way 'round.  I guess the bigger problem with the
>> Univac architecture was the ones-complement integers.  Emulating that
>> on a twos-complement machine is probably not quite cheap.
>
>Emulating 36-bit integers is probably easier using 64-bit ints:
>
>Keep them in native (twos-complement) form internally, then use 
>pre-/post-adjustment code for instructions which would depend on the 
>exact bit layout, i.e. logical & shift ops?

Hmm, maybe.  What about flags and overflow handling?

>I am guessing that most uses of integers would be for things like loop 
>counting and array indices, which is why I wouldn't keep them in 
>ones-complement form internally.

One can certainly optimize these cases, yes.

> Any ones-complement architectures left?
>
>Just sign+magnitude, i.e. FP afaik.

I meant for integers.  I think that sign-magnitude for that has been
dead for a very long time, much longer than ones-complement.

- 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]


#31814

FromIvan Godard <ivan@millcomputing.com>
Date2015-12-13 11:37 -0800
Message-ID<n4kh90$vc6$1@dont-email.me>
In reply to#31811
On 12/13/2015 10:00 AM, Anton Ertl wrote:
<snip>

> I meant for integers.  I think that sign-magnitude for that has been
> dead for a very long time, much longer than ones-complement.

Nope. The former Burroughs Unisys machines are sign-magnitude; integer 
is just FP with a zero exponent.

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


#31819

FromTerje Mathisen <terje.mathisen@tmsw.no>
Date2015-12-13 21:57 +0100
Message-ID<n4km4d$bvv$1@speranza.aioe.org>
In reply to#31811
Anton Ertl wrote:
> Terje Mathisen <terje.mathisen@tmsw.no> writes:
>> Emulating 36-bit integers is probably easier using 64-bit ints:
>>
>> Keep them in native (twos-complement) form internally, then use
>> pre-/post-adjustment code for instructions which would depend on the
>> exact bit layout, i.e. logical & shift ops?
>
> Hmm, maybe.  What about flags and overflow handling?

The same as for all binary JIT translation, i.e. only generate the flags 
when you see that a following instruction will need them.

Overflows can probably be handled after the fact, i.e. when you have to 
convert to 36-bit form you inspect the current value and realize that it 
would have wrapped around. If something would have inspected the 
overflow flag before this, then we're back at the previous stage.
>
>> I am guessing that most uses of integers would be for things like loop
>> counting and array indices, which is why I wouldn't keep them in
>> ones-complement form internally.
>
> One can certainly optimize these cases, yes.
>
>> Any ones-complement architectures left?
>>
>> Just sign+magnitude, i.e. FP afaik.
>
> I meant for integers.  I think that sign-magnitude for that has been
> dead for a very long time, much longer than ones-complement.

Good riddance. :-)

Terje

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

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


#31793

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-13 07:19 -0800
Message-ID<8f025981-1389-4737-9bf4-555ee408d184@googlegroups.com>
In reply to#31778
On Saturday, December 12, 2015 at 4:27:38 PM UTC-7, Anton Ertl wrote:
> Any ones-complement architectures left?

Aside from the Unisys Clear Path Dorado, I would have thought that the last one was the PDP-15, which was retired fairly long ago. but there could be some obscure military systems I'm not familiar with.

John Savard

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


#31796 — Re: ones complement, was Between

FromJohn Levine <johnl@iecc.com>
Date2015-12-13 15:32 +0000
SubjectRe: ones complement, was Between
Message-ID<n4k32o$13ft$1@miucha.iecc.com>
In reply to#31793
>> Any ones-complement architectures left?

Can anyone explain what the appeal of ones-complement arithmetic was?

I realize there's one less step when you negate or subtract, but the
end-around carry and the pain of two forms of zero would need at least
as many gates.

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


#31801 — Re: ones complement, was Between

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-13 08:32 -0800
SubjectRe: ones complement, was Between
Message-ID<38ccb034-be33-4237-b00d-148a72936f90@googlegroups.com>
In reply to#31796
On Sunday, December 13, 2015 at 8:32:41 AM UTC-7, John Levine wrote:
 
> Can anyone explain what the appeal of ones-complement arithmetic was?

The IBM 7090 used sign-magnitude for its integers.

One's complement was considered not quite as good as sign-magnitude, but better than (ugh!) two's complement, which only the cheap computers used!

And it was totally irrational, at least in my opinion.

John Savard

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


#31802 — Re: ones complement, was Between

FromJohn Levine <johnl@iecc.com>
Date2015-12-13 16:52 +0000
SubjectRe: ones complement, was Between
Message-ID<n4k7p2$1ibf$1@miucha.iecc.com>
In reply to#31801
>On Sunday, December 13, 2015 at 8:32:41 AM UTC-7, John Levine wrote:
> 
>> Can anyone explain what the appeal of ones-complement arithmetic was?
>
>The IBM 7090 used sign-magnitude for its integers.

Yup, and it used two's complement subtraction for its index registers.

>One's complement was considered not quite as good as sign-magnitude, but better than (ugh!) two's
>complement, which only the cheap computers used!
>
>And it was totally irrational, at least in my opinion.

The 704 was not a cheap computer, and ones' comp seemed pretty popular
until the S/360 was all two's comp all the time.  It seems unlikely
that all of those designers in the 1950s and early 1960s were stupid
(Seymour Cray? really?) but I still don't see what the appeal was.
Everyone knew about two's comp since the famous Von Neumann report
described it and the EDVAC used it.

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


#31803 — Re: ones complement, was Between

FromBruce Hoult <bruce.hoult@gmail.com>
Date2015-12-13 08:56 -0800
SubjectRe: ones complement, was Between
Message-ID<24eca3bf-cc5f-4478-b541-ce94e15ab9a5@googlegroups.com>
In reply to#31802
On Sunday, December 13, 2015 at 7:52:53 PM UTC+3, John Levine wrote:
> >On Sunday, December 13, 2015 at 8:32:41 AM UTC-7, John Levine wrote:
> > 
> >> Can anyone explain what the appeal of ones-complement arithmetic was?
> >
> >The IBM 7090 used sign-magnitude for its integers.
> 
> Yup, and it used two's complement subtraction for its index registers.
> 
> >One's complement was considered not quite as good as sign-magnitude, but better than (ugh!) two's
> >complement, which only the cheap computers used!
> >
> >And it was totally irrational, at least in my opinion.
> 
> The 704 was not a cheap computer, and ones' comp seemed pretty popular
> until the S/360 was all two's comp all the time.  It seems unlikely
> that all of those designers in the 1950s and early 1960s were stupid
> (Seymour Cray? really?) but I still don't see what the appeal was.
> Everyone knew about two's comp since the famous Von Neumann report
> described it and the EDVAC used it.

You have to admit it's inelegant to have a value that can't be negated without overflow!

Both the other choices avoid that.

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


#31804 — Re: ones complement, was Between

FromJohn Levine <johnl@iecc.com>
Date2015-12-13 17:03 +0000
SubjectRe: ones complement, was Between
Message-ID<n4k8da$1j5s$1@miucha.iecc.com>
In reply to#31803
>> The 704 was not a cheap computer, and ones' comp seemed pretty popular
>> until the S/360 was all two's comp all the time.  It seems unlikely
>> that all of those designers in the 1950s and early 1960s were stupid
>> (Seymour Cray? really?) but I still don't see what the appeal was.
>> Everyone knew about two's comp since the famous Von Neumann report
>> described it and the EDVAC used it.
>
>You have to admit it's inelegant to have a value that can't be negated without overflow!
>
>Both the other choices avoid that.

You are of course correct, but two forms of zero ain't the apex of
elegance and (I would think) is something applications have to deal
with a lot more often.  Both other choices have that.  Still baffled.

Sign magnitude makes some sense for easier I/O conversions,
particuarly back when a lot of machines were partly or entirely
decimal.





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


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

Back to top | Article view | comp.arch


csiph-web