Mail Archives: djgpp/2000/02/01/22:24:11
On 01 Feb 2000, you wrote in comp.os.msdos.djgpp:
>I don't know the details of exactly why this is, but presumably it is
>something to do with branch prediction, or forcing which of the two
>Pentium execution units will be used for the main loop.
Thank you, for your answer. At least I seeem not to be the only
one, who doesn't really understand this. I cannot follow your
argument, anyway. I would have thougt, that such a delay loop should
be, as much as possible, independant from the processor type.
Your mention of "Pentium execution units" seems to contradict this.
Anyway, I can not think of any easier case for the branch prediction
logic, than this code. It should almost always do right.
Regards,
Dieter
- Raw text -