<div dir="auto"><br>
<br>
On Fri, Mar 23, 2018 at 7:40 PM, Ray Dillinger <<a href="mailto:bear@sonic.net" target="_blank" rel="noreferrer">bear@sonic.net</a>> wrote:<br>
><br>
><br>
> On 03/23/2018 06:05 PM, Henry Baker wrote:<br>
><br>
>> Great idea.<br>
>><br>
>> Let's see how well it works in practise.<br>
><br>
> <snip><br>
><br>
>> # stuff finally shows up at yyyyy in the cache at this point in time<br>
>> # I just received this $$$ box from Amazon that I ordered 5 months ago.<br>
>> # I can't remember what I was doing at the time, or why I ordered it.<br>
>> # Well, gotta go now, so throw it in the trash or give it away.<br>
><br>
><br>
> You're being facetious of course. Compilers don't need to "remember"<br>
> what they were doing and why they asked for data to be precached; like<br>
> every other instruction, pre-caching instructions are generated in the<br>
> first place from the actions and reasons.<br>
><br>
> But obviously you know that.  So you must be making a joke but I don't<br>
> know what you're making a joke about.<br>
><br>
> Determining when to undertake these actions is not too hard for the<br>
> logic overhead expressed in silicon which presently runs during the code<br>
> execution. Moving that overhead to the compiler doesn't make it more<br>
> complex than it already is.<br>
<br>
Doing this bakes in details of what execution units are available and their latencies into the generated machine code. This is acceptable for specialized DSP designs, but not acceptable for CPUs where a wide range of CPUs should all get good performance on a wide amount of precompiled software. Most software has a small number of live variables in each basic block and unpredictable branching: speculative execution is necessary to access parallelism.<br>
><br>
>                                 Bear<br>
><br>
><br>
> _______________________________________________<br>
> The cryptography mailing list<br>
> <a href="mailto:cryptography@metzdowd.com" target="_blank" rel="noreferrer">cryptography@metzdowd.com</a><br>
> <a href="http://www.metzdowd.com/mailman/listinfo/cryptography" rel="noreferrer noreferrer" target="_blank">http://www.metzdowd.com/mailman/listinfo/cryptography</a><br>
<br>
<br>
<br>
--<br>
"Man is born free, but everywhere he is in chains".<br>
--Rousseau.<br></div>