From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: d180ab3bd8,ddd5f2f431fd91ca X-Google-Attributes: gidd180ab3bd8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: glen herrmannsfeldt Newsgroups: comp.sys.dec Subject: Re: OpenVMS Still Only 32-Bit Addresses!? Date: Mon, 14 Feb 2011 03:22:05 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <743a5365-d7b1-4730-bbe1-37e58643972f@z20g2000yqe.googlegroups.com> Injection-Date: Mon, 14 Feb 2011 03:22:05 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="VhYZ3ZDVkI1WvjO/5Jzlvw"; logging-data="30901"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Hid01WhPlzlMHLwjjD6VA" User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64)) Cancel-Lock: sha1:E5MRLeZifUta4uej+wG+4oaEL7I= Xref: g2news1.google.com comp.sys.dec:2833 Lawrence D'Oliveiro wrote: (someone wrote) >>> One thing that mildly surprised me was that the Alpha kept the >>> distinction between integer and floating-point registers. (then I wrote) >> It makes it much easier for the processor to do out-of-order >> execution if you don't have to keep track of which values are >> going where. > That???s what register renaming is all about. It is, but it complicates it if it has to keep track of the registers in both fixed and floating point sense. Well, I did much of my early programming on a 360/91, and still find it an interesting machine. (Also popular in books on pipelined processors.) It was one of the early machines to do register renaming. Now, consider that the fixed and floating point processing might be done in separate units, and that fixed point is often used for both calculation and addressing. >> Also, many don't save the floating point registers during >> task switches when it isn't needed. > Hmmm ... are you really saving that much these days? As in, > are there still a high proportion of tasks that _aren???t_ using > floating-point operations? Well, it gets worse as you increase the number and size of the registers, but consider an I/O interrupt. The interrupt routine is unlikely to do much floating point. Also, must text processing doesn't need to do any, or very little. (TeX uses floating point only for messages, none where it can affect the DVI output.) >>> Combining the two sets would have given you a bit more flexibility, if >>> you???re running short of one kind and have an excess of the other kind. >> Well, for one that means more instruction bits. > Only one more for each register operand. But one that you can't use for register selection. >> By keeping them separate you get the appropriate number of each, >> addressed by the appropriate instruction type. > Yes, but then look at what happens when your data types proliferate, > particularly with SIMD extensions: which set of registers should you > use for those, and why? Well, it was a neat trick of Intel to store the MMX register such that they would be saved on task switch on systems supporting the x87 registers. But in addition to the problem of saving registers for task switch, there is the problem of subroutine call. The two common systems, are callee saves (the registers that have values that are needed across the call) or caller saves (the registers that could be modified. The result is more saving than necessary. In the Cray-1 days there was discussion of having the linker allocate vector registers to minimize the saving needed. (I don't know if that was ever done, though.) Now, continue the comment on register renaming, and consider the RISC idea of giving the power to the compiler to keep track of much that used to be done by the processor. I believe that the extra logic needed to share the registers across functional units is more than needed to duplicate registers (that is, more total registers). -- glen