Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750908AbWC0Lgt (ORCPT ); Mon, 27 Mar 2006 06:36:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750909AbWC0Lgt (ORCPT ); Mon, 27 Mar 2006 06:36:49 -0500 Received: from [195.23.16.24] ([195.23.16.24]:62855 "EHLO linuxbipbip.grupopie.com") by vger.kernel.org with ESMTP id S1750907AbWC0Lgt (ORCPT ); Mon, 27 Mar 2006 06:36:49 -0500 Message-ID: <4427CE4D.5010109@grupopie.com> Date: Mon, 27 Mar 2006 12:36:45 +0100 From: Paulo Marques Organization: Grupo PIE User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Linda Walsh CC: Adrian Bunk , Jan Engelhardt , Linux-Kernel Subject: Re: Save 320K on production machines? References: <4426515B.5040307@tlinx.org> <20060326100639.GE4053@stusta.de> <4427BCCC.4080506@tlinx.org> In-Reply-To: <4427BCCC.4080506@tlinx.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1060 Lines: 24 Linda Walsh wrote: > [...] > The current makefile turns on the optimization only on gcc4 or higher, > but my results were with gcc3.5.5. Maybe defaults for 386 should > enabler the optimization for some versions of gcc 3 as well? -l AFAICR, the problem with gcc3 and unit-at-a-time was stack usage with local variables on automatically inlined functions. For instance, if function A called B and after B returned called C, both local variables of B and C would be given a reserved space on the stack during the execution of A if both functions were automatically inlined. So the space needed now was A+B+C whereas before was Max(A+B, A+C). -- Paulo Marques - www.grupopie.com Pointy-Haired Boss: I don't see anything that could stand in our way. Dilbert: Sanity? Reality? The laws of physics? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/