Mail Archives: djgpp/2001/07/25/05:44:29
On Wednesday, July 25, 2001 1:17 PM, kallekula60 AT hotmail DOT com
[SMTP:kallekula60 AT hotmail DOT com] wrote:
> Thanks for all the replies! This is what I came up with and it
> seems
> too work fine on my K6-2 computers.
Blind interation loops might be optimized by some CPUs, so in effect it
won't execute those 10000 times. So, it's better that you do something like:
movl $1, %eax;
xorl %eax, %eax;
xorl %eax, %eax;
xorl %eax, %eax;
xorl %eax, %eax;
xorl %eax, %eax;
xorl %eax, %eax;
....// Around 500-1000 lines of this.
and run the loop a few times. That produces reliable results according to
some of the tests I've done on different CPUs.
--
Prashant TR <tr AT midpec DOT com> Web: http://www.midpec.com/
"Those who do not understand Unix are condemned to reinvent it, poorly."
-- Henry Spencer
- Raw text -