delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/17/00:59:44

Date: Mon, 16 Mar 1998 17:57:45 -0800 (PST)
Message-Id: <199803170157.RAA24200@adit.ap.net>
Mime-Version: 1.0
To: Elliott Oti <e DOT oti AT stud DOT warande DOT ruu DOT nl>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: release-quality compile - which switches to use

At 03:52  3/16/1998 GMT, Elliott Oti wrote:
>Viktor Lundstrom wrote:
>> 
>> When doing a "release-quality"-compile which switches should I use?
>> (ie. maximum optimization, no debug-data + stuff)
>
>gcc:
>-O2 -s -ffast-math -fomit-frame-pointer 
         ^^^^^^^^^^
Assuming you don't depend on exact ANSI behavior for floating point (like
having `errno' set to EDOM when you do sqrt(negative) (Could be used in a
signal handler or if the handler doesn't exit)).

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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