logo       

Re: handling of c flags in configure: msg#00032

Subject: Re: handling of c flags in configure
> -ffast-math may not lead to reliable answers, but I have verified it to
> work with IEEE floating point verification for my main platform and gcc
> version and so I use it.  It's not a viable choice as a default

I am not an expert on this, but as I understood, it depends on your *code* 
whether this flag breaks it or not, as it violates strict ansi (or was it 
ieee?) rules. I think eg it was about nans and stuff like that which won't 
work anymore and the compiler trying to simplifiy things which could lead to 
unwanted results due to float instability. Furthermore it would try to use 
intrinsics for eg trig functions so your results could vary more from cpu to 
cpu in constrast to using gcc internal functions.

> optimization flag.  However, it does depend if any math errors result in
> any perceivable way for this project.
>
> -O2 is safe, just not very exciting. :P  But a good default choice.

Great that you agree. :-) Omiting the frame pointer is also a viable choice, 
but mainly helps x86 only due to lack of general registers. The only problem 
I got with this flag was with some compilers on some arches (mainly k6-2) 
segfaulting - but as this was at compile time only, so not a critical issue.

-- 
(°=                 =°)
//\ Prakash Punnoor /\\
V_/                 \_V


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe