Mail Archives: djgpp/1997/04/07/01:11:32
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 -