delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/02/01/09:31:27

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3A79734B.60312A00@yahoo.com>
Date: Thu, 01 Feb 2001 09:31:39 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <cygwin-developers AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin-developers AT cygwin DOT com
Subject: Re: -fomit-frame-pointer
References: <20010131220850 DOT A7107 AT redhat DOT com> <Pine DOT HPP DOT 3 DOT 96 DOT 1010201001850 DOT 9500E-100000 AT hp2 DOT xraylith DOT wisc DOT edu> <20010201085149 DOT C4545 AT redhat DOT com>

Christopher Faylor wrote:
> 
> On Thu, Feb 01, 2001 at 12:19:52AM -0600, Mumit Khan wrote:
> >On Wed, 31 Jan 2001, Christopher Faylor wrote:
> >
> >> Anybody ever tried building cygwin with -fomit-frame-pointer optimization?
> >> It sort of works if you choose the files that you compile with this option
> >> carefully.
> >
> >Last time I tried was a while back, and I ended up with a non-working DLL.
> >However, it was a long time ago, and it's probably time to try it again.
> >My next build, right after I get the patches in for gcc-2.97 build  ...
> 
> You can't compile every file like this or you'll screw up signal handling
> badly, but it seems to work on selected files.  I wonder if it is worth
> using this option on some files or if the maintenance won't be worth it.
> 

I've not tried that optimization yet but I do use and have CFLAGS and
CXXFLAGS set to:

-O3 -s -fnative-struct -foptimize-register-move -fgnu-linker -ffast-math
-fnew-exceptions -frerun-loop-opt -frerun-cse-after-loop -fgcse
-fpeephole -fstrength-reduce -fthread-jumps -fexpensive-optimizations
-fvolatile -mpreferred-stack-boundary=8 -march=i686

The preferred-stack-boundary=8 does produce a slightly larger dll but
not that much and I think it's worth it.  You probably wouldn't want to
net release a -march=i686 unless you also release a -march=i386.

YMMV,
Earnie.

P.S.: I already know that some of the switches listed may be already
added with the -O3 switch but I haven't taken the time to discover which
ones.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

- Raw text -


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