X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C46677C.67A2BE8C@gmx.de> From: schaecsn X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.0.39 i586) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: GCC 3.03 makes slow code References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 23 Date: Thu, 17 Jan 2002 05:56:15 GMT NNTP-Posting-Host: 165.247.221.149 X-Complaints-To: abuse AT earthlink DOT net X-Trace: newsread2.prod.itd.earthlink.net 1011246975 165.247.221.149 (Wed, 16 Jan 2002 21:56:15 PST) NNTP-Posting-Date: Wed, 16 Jan 2002 21:56:15 PST Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Wed, 16 Jan 2002 21:56:16 PST (newsmaster1.prod.itd.earthlink.net) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Daniel Lidström" wrote: > > "no spam" wrote... > > I was testing the latest GCC 3.03 (djgpp) and compiled an application > > using switches -O9 -fomit-frame-pointer -mcpu=pentium -fschedule-insns2 > > -fexpensive-optimizations the code it generated run 10-20% slower (on > > Celeron-A CPU) compared to a version compiled with GCC 2.95 (using > > identical switches). > > Are you sure there is a optimization switch -O9? When I read the man pages > of gcc 2.95.3-5 (cygwin) the -O option only goes to -O3. everything above 03 falls back to 03. so you can use the same makefile for compilers with higher optimization numbers. C compilers are sometimes plattform independent ;-) - Stefan -- ___ ___ __ | Name: Stefan Schäckeler / / / /____ (__)__ ___ | E-mail: schaecsn AT gmx DOT de / /_/ / _ \/ /\ \/ / | day: Windows 2000, HP-UX 11 \___,__/__//__/__/ /__/\__\ | night: Linux 2.4, NetBSD-Alpha 1.5.2