Date: Mon, 31 Jan 2005 11:41:57 -0500 From: David Schultz <das@FreeBSD.ORG> To: Paul Richards <paul@originative.co.uk> Cc: arch@FreeBSD.ORG Subject: Re: c99/c++ localised variable definition Message-ID: <20050131164157.GA11469@VARK.MIT.EDU> In-Reply-To: <20050131102630.GJ61409@myrddin.originative.co.uk> References: <20050128173327.GI61409@myrddin.originative.co.uk> <20050131102630.GJ61409@myrddin.originative.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 31, 2005, Paul Richards wrote: > Ok, to sum up the discussion then: > > 1) In the kernel the issue of stack usage is a relevant consideration > against adopting the new style. Is it? In my experience, gcc 3.X does a proper liveness analysis at -O1 and higher, and reuses stack space pretty well. This is an elementary optimization. (Some people don't seem to trust the compiler to do this, so they do evil things such as reuse an identifier to mean two different things in the same function.)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050131164157.GA11469>