X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Bob W" Newsgroups: comp.os.msdos.djgpp Subject: gcc 4.10 thinks it is 5x faster than 4.01 Followup-To: comp.os.msdos.djgpp Date: 27 Mar 2006 15:26:42 -0800 Organization: http://groups.google.com Lines: 16 Message-ID: <1143502002.445175.231640@v46g2000cwv.googlegroups.com> NNTP-Posting-Host: 84.102.38.180 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1143502008 4074 127.0.0.1 (27 Mar 2006 23:26:48 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Mon, 27 Mar 2006 23:26:48 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse AT google DOT com Injection-Info: v46g2000cwv.googlegroups.com; posting-host=84.102.38.180; posting-account=CXf2IQ0AAADhHwR4LIBYSPHMQKV3cPd3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com After checking out gcc version 4.10 the first test already revealed a flaw: My test-program reported that it was running about 5 times as fast as compared to its 4.01 compiled version. As I don't believe in miracles, I suspect that a bug has crawled into the clock() function and/or the CLOCKS_PER_SEC definition. I have further noticed a 6% jitter in the values which are returned by clock() after about 5 seconds. But this is not necessarily related to the above mentioned problem. (Console window, Win XP-P)