Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Apparently-From: Message-ID: <3A89867C.395FC4E3@yahoo.com> Date: Tue, 13 Feb 2001 14:09:48 -0500 From: Earnie Boyd Reply-To: Earnie Boyd X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Jonathan Kamens CC: cygwin AT cygwin DOT com Subject: Re: Optimizing away "ReadFile" calls when Make calls stat() References: <20010213183634 DOT 1435 DOT qmail AT lizard DOT curl DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Jonathan Kamens wrote: > > I realize that this is a bit gross. However, (a) surely it isn't much > more gross than storing symbolic links inside files and reading files > to determine whether they should look executable :-), and (b) it > really does give a drastic performance improvement for the small price > of not using symbolic links in your source or build tree. > > Please comment. > This sounds very interesting but I believe work to eliminate TWO ReadFiles would be best; but, I don't know if this is possible. I have found the following set of GCC flags to have great impact with the speed with wish Cygwin flies. Set both the CFLAGS variable and the CXXFLAGS variable before configuring Cygwin. -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 Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple