From owner-freebsd-hackers Thu Mar 7 7:46:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by hub.freebsd.org (Postfix) with ESMTP id 3653837B4AC for ; Thu, 7 Mar 2002 07:45:38 -0800 (PST) Received: from fwd02.sul.t-online.de by mailout04.sul.t-online.com with smtp id 16j055-0000pc-03; Thu, 07 Mar 2002 16:45:23 +0100 Received: from spirit.corecode.ath.cx (320050403952-0001@[80.128.122.16]) by fmrl02.sul.t-online.com with esmtp id 16j04p-0NQjNQC; Thu, 7 Mar 2002 16:45:07 +0100 Received: from elevation.zuhause.stoert.net (elevation.zuhause.stoert.net [192.168.66.46]) by spirit.corecode.ath.cx (8.11.6/8.11.6) with ESMTP id g27FjCc77745; Thu, 7 Mar 2002 16:45:12 +0100 (CET) (envelope-from corecode@corecode.ath.cx) Received: (from corecode@localhost) by elevation.zuhause.stoert.net (8.11.6/8.11.6) id g27Fj3640012; Thu, 7 Mar 2002 16:45:03 +0100 (CET) (envelope-from corecode) Date: Thu, 7 Mar 2002 16:45:00 +0100 From: "Simon 'corecode' Schubert" To: Erik Trulsson Cc: roam@ringlet.net, mitko@rila.bg, freebsd-hackers@FreeBSD.ORG, gclarkii@vsservices.com Subject: Re: Swapping performance Message-Id: <20020307164500.5dd21d16.corecode@corecode.ath.cx> In-Reply-To: <20020307153615.GB1942@student.uu.se> References: <20020307090707.GC26621@elvis.mu.org> <20020307142759.0d95d467.mitko@rila.bg> <20020307080906.367be8df.gclarkii@vsservices.com> <20020307164724.D377@straylight.oblivion.bg> <20020307153615.GB1942@student.uu.se> X-Mailer: Sylpheed version 0.7.2claws (GTK+ 1.2.10; i386--freebsd4.5) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=.sWC1FNHO:W3Y?f" X-Sender: 320050403952-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=.sWC1FNHO:W3Y?f Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 7 Mar 2002 16:36:15 +0100 Erik Trulsson wrote: > > > > I've tested it with : > > > > > > > > cc -O6 -o malloc_test malloc_test.c > > > > > > That -O6 does not look right from here. Do we support anything over -O2? > > > > ISTR that -On is exactly the same for -O2 for n > 2; or is this stale info? > > Maybe GCC 3.x supports higher optimization levels; still, I don't think > > this would make any significant difference. > > n > 3 actually. The difference between -O2 and -O3 is that -O3 enables > inlining of functions. This usually makes the generated code larger, > and sometimes faster (and sometimes slower.) > > FreeBSD does not officially support anything above -O since there have > been reports of bad code generated when compiling with -O2 or higher. to everybody who doesn't believe that: it really generates bad code. i've been having severe problems with my tcp and udp stack lately (on a i586/mmx machine). guess what, -O2 resulted in code which >>sometimes<< generated bad tcp and/or udp checksums (depending on ip). i didn't investigate any further, but believe me: not being able to access some dns servers is a pain in the ass. cheerz corecode -- /"\ http://corecode.ath.cx/ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.sWC1FNHO:W3Y?f Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8h4r/r5S+dk6z85oRAqExAJ9RDOG4j8RfeZ5H/y7s5MPc9HgJaQCaAoZ3 /DAvUSN4bc0xGOzvlMnFPB8= =rHGa -----END PGP SIGNATURE----- --=.sWC1FNHO:W3Y?f-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message