delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/14/10:34:09

From: "DeHackEd" <Not DOT given AT out>
References: <01bd65fa$b5ea4320$6c1daace AT hmsbob>
Subject: Re: Which compiler switches give best results???
Date: Sun, 12 Apr 1998 09:38:14 -0400
Lines: 25
Message-ID: <eptrWlhZ9GA.198@uppubnews03>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Read the INFO pages and look to see what the compiler has to offer. -O2 or -O3
generally make excellent code, but there may be some things that are omitted
that you would want to look at. Remember that some options arn't always
reliable, so think about it.

But to speed things up, you should probably use -ffast-math but only in your
release version as you should throughly debug the code as -ffast-math causes
some necessary checking to be omitted.

Try out different combinations. See what makes your code run fastest. Use -pg to
profile (though this will slow your framerate down to below 5 fps - it did it on
dosdoom).
--
"DeHackEd"

EMail address not given out due to low-life spammers.
Ricmk wrote in message <01bd65fa$b5ea4320$6c1daace AT hmsbob>...
>I am writing a 3D game which uses fixed/floating math, a lot of bitmap
>blitting, tons of loops, and plays sounds on top of that.  I was wondering
>which switches to use with the compiler to give the game the fastest frame
>rate possible?  Any ideas?
> Thank you in advance
> RicMK


- Raw text -


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