From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4671,b1738035b01d4980 X-Google-Attributes: gidf4671,public X-Google-Thread: 1164f8,b1738035b01d4980 X-Google-Attributes: gid1164f8,public X-Google-Thread: 11035d,b1738035b01d4980 X-Google-Attributes: gid11035d,public From: jonathan@DSG.Stanford.EDU (Jonathan Stone) Subject: Re: Why not Solaris on Alpha? Date: 1997/06/21 Message-ID: <5ofrtt$11f$1@nntp.Stanford.EDU>#1/1 X-Deja-AN: 251514048 Distribution: inet Sender: jonathan@Cup.DSG.Stanford.EDU (Jonathan Stone) References: <5mrt16$eo3@percy.cs.bham.ac.uk> <339EC070.390D@brussels.lhs.be> <5nn2j5$12h@cucumber.demon.co.uk> <339F9F56.1E4D4CFD@lehman.com> <5o8r6m$ner@ktel.osc.edu> <5o9ehl$8np@cocoa.brown.edu> <33A90AD7.3F54BC7E@lehman.com> Organization: Stanford Distributed Systems Group Reply-To: jonathan@DSG.Stanford.EDU Newsgroups: comp.unix.solaris,comp.sys.sun.hardware,comp.sys.dec In article <33A90AD7.3F54BC7E@lehman.com>, Paul David Fox writes: > R!ch wrote: > > A segmented architecture is one of the most stupidest ideas in > > CPU design, IMHO. Give me a flat addressing space any day. > > > > Oops. Be very careful R!ch. If you look at Sparc assembly > language it is not that dissimilar to x86 large-model 16-bit > code. > > Why? Well you cannot load a 32-bit constant into a 32-bit > register in one instruction and you have to do it in two 'halves'. Nonsense. The appropriate comparison point to a flat address space is the so-called x86 `huge' model. A comparison of the code required to increment a pointer will make the difference glaringly obvious. On a sparc, or a mips, once you've loaded the upper and lower halves of 32-bit constant address, you can increment that address all the way through a 32-bit virtual address space using a single add insn for each pointer increment. (or 64-bit, these days, of course). That's what ``flat addres space'' *means*, and you can't do it on a 286, or other x86 in 16-bit mode without doing ugly, hideously slow segment-register manipulation, to propagate bits from the `address' register to the `segment' register each time the former overflows. (And that's ignoring, for the sake of argument, the 286's much smaller virtual address space.)