www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/19/05:33:44

From: jestandi AT cs DOT indiana DOT edu (Jeff Standish)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: timing instructions [code, LONG]
Date: 12 Feb 1997 10:14:58 -0500
Organization: Computer Science, Indiana University
Lines: 16
Message-ID: <5dsmpi$ai7@gummy.cs.indiana.edu>
References: <m0vuJq6-000S1kC AT natacha DOT inti DOT edu DOT ar>
NNTP-Posting-Host: gummy.cs.indiana.edu
NNTP-Posting-User: jestandi
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Well, I guess I don't know quite as much as I thought I did.  This
code has always worked just fine for me before, and is based directly
on benchmarking code I've seen and used before.  The only thing I've
changed is the code for doing the timing, which is correct as far as
I can tell.  It runs fine on UNIX boxes, but I changed the timing code
since I didn't think djgpp supports the UNIX style timing calls.
Unless DJGPP is doing something wierd to the individual arithmetic
operations (ie, doing optimizations despite being given the -O0 flag),
I've nary a clue why it's not behaving properly.


-- 
-----------------------------------------------------------------------------
Jeff Standish                  http://www.cs.indiana.edu/hyplan/jestandi.html   
jestandi AT cs DOT indiana DOT edu              May your deeds with sword and axe
jlstandish AT acm DOT org                    Equal those with sheep and yaks

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019