Date: Tue, 1 Feb 2000 21:48:16 -0500 Message-Id: <200002020248.VAA01210@delorie.com> X-Posting-Agent: Hamster/1.3.8.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: I need to advice on timing... From: buers AT gmx DOT de (Dieter Buerssner) References: User-Agent: Xnews/2.11.08 To: Shawn Hargreaves Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com 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