From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 6 Jan 2003 10:37:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 6 Jan 2003 10:37:19 -0500 Received: from svr-ganmtc-appserv-mgmt.ncf.coxexpress.com ([24.136.46.5]:46090 "EHLO svr-ganmtc-appserv-mgmt.ncf.coxexpress.com") by vger.kernel.org with ESMTP id ; Mon, 6 Jan 2003 10:37:19 -0500 Subject: Re: Why do some net drivers require __OPTIMIZE__? From: Robert Love To: root@chaos.analogic.com Cc: Alex Bennee , Linux Kernel Mailing List In-Reply-To: References: Content-Type: text/plain Organization: Message-Id: <1041867947.730.8.camel@phantasy> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 (1.2.1-2) Date: 06 Jan 2003 10:45:48 -0500 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2003-01-06 at 10:04, Richard B. Johnson wrote: > You need to optimize in order enable inline code generation. It is > essential to use in-line code in many places because, if the compiler > actually calls these functions they would have to be protected > from reentry. I do not think this is correct. Concurrency concerns would not change wrt calling the function vs. inlining it. More likely some code, i.e. asm, just assumes inlining is taking place. Robert Love