Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261161AbVDYUuc (ORCPT ); Mon, 25 Apr 2005 16:50:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261174AbVDYUub (ORCPT ); Mon, 25 Apr 2005 16:50:31 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:61347 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S261161AbVDYUuR (ORCPT ); Mon, 25 Apr 2005 16:50:17 -0400 Subject: Re: [PATCH GIT 0.6] make use of register variables & size_t From: Arjan van de Ven To: Linus Torvalds Cc: Matthias-Christian Ott , git@vger.kernel.org, Linux Kernel Mailing List In-Reply-To: References: <426CD1F1.2010101@tiscali.de> <426D21FE.3040401@tiscali.de> <426D33BA.8040604@tiscali.de> Content-Type: text/plain Date: Mon, 25 Apr 2005 22:50:09 +0200 Message-Id: <1114462210.8442.54.camel@laptopd505.fenrus.org> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-2) Content-Transfer-Encoding: 7bit X-Spam-Score: 3.7 (+++) X-Spam-Report: SpamAssassin version 2.63 on pentafluge.infradead.org summary: Content analysis details: (3.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.1 RCVD_IN_DSBL RBL: Received via a relay in list.dsbl.org [] 2.5 RCVD_IN_DYNABLOCK RBL: Sent directly from dynamic IP address [80.57.133.107 listed in dnsbl.sorbs.net] 0.1 RCVD_IN_SORBS RBL: SORBS: sender is listed in SORBS [80.57.133.107 listed in dnsbl.sorbs.net] X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 26 On Mon, 2005-04-25 at 11:50 -0700, Linus Torvalds wrote: > > On Mon, 25 Apr 2005, Matthias-Christian Ott wrote: > > > > But this makes, like "register", direct use of processor registers (it > > stores int arguments in eax, ebx, etc.). > > No. It make _unlike_ "register", direct use of processor registers. > > The "register" keyword does _not_ use processor registers. It's just > syntactic fluff, and tells the compiler exactly one thing: > > - that the compiler should warn if you take the address of such a thing. > > In addition, the compiler may generate code that takes it into account, > which most likely means _worse_ code than if it didn't take it into > account. afaik gcc just otherwise ignores it entirely. - 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/