delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/07/01:11:32

From: BECman <becman AT cynergy DOT com DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: I don't understand djgpp's optimizations
Date: Mon, 07 Apr 1997 14:07:12 +1000
Organization: BEC Manufacturing Pty Ltd
Lines: 22
Message-ID: <334864E0.5EDE@cynergy.com.au>
References: <33440E51 DOT 6AE AT imaginet DOT fr> <5i38mc$36q AT news DOT epcc DOT edu>
Reply-To: becman AT cynergy DOT com DOT au
NNTP-Posting-Host: port-118.cynergy.com.au
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Beautiful Savior Lutheran Church wrote:
: 
: DoLooP (kst AT imaginet DOT fr) wrote:
: > I'm new in c coding, and i'm trying djggp because a lot of
demoscoder
: > says that this is THE best compiler. So i try a simple 50000 loop 
: > with a calcul in it. i've done a time mesure and the code generated 
: > is really NOT speed comparing to what the watcom c gives to me. it 
: > run 2 times better in watcom flat mode. i've used -o2 -forcemem 
: > -forceaddr -fstrengh...   flags. (and perhaps some other one). could 
: > someone help me ?
: 
: Using a for() loop as a pause mechanism is a Bad Idea. Results will 
: vary with every compiler and processor. If you want to pause, use 
: sleep() 

He is doing 50,000 calculations in a 'for' loop, not pausing.
I'm sure this should be in the FAQ, as it's one of the
important aspects that everyone needs.


Graham.

- Raw text -


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