From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public From: nmm1@cus.cam.ac.uk (Nick Maclaren) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/04 Message-ID: <6157jp$at5$1@lyra.csx.cam.ac.uk>#1/1 X-Deja-AN: 278154610 References: <3431A2DB.4273@EasyInternet.net> <01bcd02b$58e67280$0200000a@kld_mcs> <613p2b$g1r$1@lyra.csx.cam.ac.uk> Organization: University of Cambridge, England Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In article , Rob Barris wrote: > > I think what goes on inside processors such as PentiumPro / Pentium-II >as well as PowerPC-604 (and several others, Alpha included? dunno) very >much qualifies as "speculative execution", perhaps it would help if you >shared your definitions of "speculative" and "significant". Yes, I think that Andrew Glew and you are right, and there is considerable terminological confusion. A paragraph that I left out of my previous posting said that there was no clear boundary between simple operand pre-loading and speculative/eager/etc/ execution in their fullest sense. However, I was referring to actions like the following: Preloading operands based on, address calculations based on, both paths of a conditional branch based on, some tests based on, preloaded operands based on, address calculations based on, both paths of a conditional branch based on, a test that has not yet been evaluated. I am, unfortunately, not joking when I say that there are critical paths in the X Windowing System etc. that need that sort of optimisation for efficiency. And remember that the address calculations will, in general, need both addition and multiplication units. Most foully, the paths can run ahead at different rates, and you STILL have to get interruption and recovery right :-( Naturally, I could be wrong, but I understood the Pentium XXX designs to include only very limited speculative execution facilities. If I am wrong, I am pretty certain of the following: 1) Interrupt handling has been broken again (though this is getting be an Intel tradition, and they have got it codified in standards). 2) EITHER Intel have reinvented the "Model 91 pipe-line drain" instruction under another name OR I could write a valid C program that would execute incorrectly. My point about languages is that it becomes possible to implement reliable speculative execution relatively easily, IF you can assume that certain constraints are met. In particular, you know that the operands may be invalid, but they will not change between the preloading and the final use. And that is PRECISELY what you do not get with C or any of its derivatives. Nick Maclaren, University of Cambridge Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB2 3QG, England. Email: nmm1@cam.ac.uk Tel.: +44 1223 334761 Fax: +44 1223 334679