Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <407C2244.1010509@cs.york.ac.uk> Date: Tue, 13 Apr 2004 18:24:20 +0100 From: Chris Jefferson User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) MIME-Version: 1.0 To: Hans Horn CC: cygwin AT cygwin DOT com Subject: Re: compilation with -mno-cygwin References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Hans Horn wrote: >I light of the recent gcc performance comparison, I tried to compile a >number crunching application (for which I have noticed a significant >performance degradation of a factor 2-3 since the days of gcc2.9.x) using >the -mno-cygwin flag. >I get a shitload of crap like the following : > >g++ -c -mno-cygwin -ansi -DGCC3X -DLINUX -DINLINE=inline -fno-default-inline > -W -Wno-deprecated -fomit-frame-pointer -ffast-math -mcpu=pentium4 -march=p >entium4 -mfpmath=sse -O2 -I./ -o xyz.o xyz.cpp > > For a start, you shouldn't treat -mno-cygwin like linux (-DLINUX). -mno-cygwin turns g++ into a "pure" windows C++ compiler (hence the name of the flag). -mno-cygwin should end up with files identical(ish) to those obtained by mingw I think.. what compile line did you use for that? Chris -- Badger, Badger, Badger, Badger, Badger, Badger, Badger, Badger... Mushroom! Mushroom! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/