From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 16 13:36:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FD4216A4CE for ; Mon, 16 Feb 2004 13:36:35 -0800 (PST) Received: from hotmail.com (bay12-f54.bay12.hotmail.com [64.4.35.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A87743D31 for ; Mon, 16 Feb 2004 13:36:35 -0800 (PST) (envelope-from jtumani55@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 16 Feb 2004 13:36:35 -0800 Received: from 161.44.73.245 by by12fd.bay12.hotmail.msn.com with HTTP; Mon, 16 Feb 2004 21:36:35 GMT X-Originating-IP: [161.44.73.245] X-Originating-Email: [jtumani55@hotmail.com] X-Sender: jtumani55@hotmail.com From: "Juan Tumani" To: dillon@apollo.backplane.com Date: Mon, 16 Feb 2004 16:36:35 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 16 Feb 2004 21:36:35.0283 (UTC) FILETIME=[F38CA230:01C3F4D4] cc: des@des.no cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 5.2 v/s FreeBSD 4.9 MFLOPS performance (gcc3.3.3v/sgcc2.9.5) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2004 21:36:35 -0000 Thanks Matt for picking up on the linker problem. Patching the kernel would, to me, be masking the real problem. What other "improvements" does gcc333 have over gcc295 that might explain why it's linked products run in a half-fast mode (take twice+ as long)? JT >From: Matthew Dillon >To: "Juan Tumani" >CC: des@des.no, freebsd-hackers@freebsd.org >Subject: Re: FreeBSD 5.2 v/s FreeBSD 4.9 MFLOPS performance >(gcc3.3.3v/sgcc2.9.5) >Date: Mon, 16 Feb 2004 13:12:15 -0800 (PST) > > I'm surprised Bruce hasn't chimed in here yet. I guess he's tired of > repeating himself. > > In 4.9, libcsu, which generates crt1.o (which is the start code for > C programs which the linker links in automatically) has this line in >it: > > andl $~0xf, %%esp # align stack to 16-byte boundary > > So anything linked with 4.9 is going to align the stack on a > 16 byte boundary no matter WHAT the kernel does. > > FreeBSD-5 does not have this alignment in its crt1.o because GCC3 > automatically aligns the stack on a per-procedure basis. Or at least > it is supposed to. Maybe it's broke? :-) > > -Matt > _________________________________________________________________ Check out the great features of the new MSN 9 Dial-up, with the MSN Dial-up Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/