From: av568 AT rgfn DOT epcc DOT edu (Beautiful Savior Lutheran Church) Newsgroups: comp.os.msdos.djgpp Subject: Re: I don't understand djgpp's optimizations Date: 4 Apr 1997 16:02:20 GMT Organization: The Rio Grande Free-Net, El Paso Community College, El Paso, TX Lines: 15 Message-ID: <5i38mc$36q@news.epcc.edu> References: <33440E51 DOT 6AE AT imaginet DOT fr> NNTP-Posting-Host: rgfn.epcc.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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() -- Beautiful Savior Evangelical Lutheran Church - av568 AT rgfn DOT epcc DOT edu We have what you need-- A Savior!