Subject: Re: ssp and gcc-4.1
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-userlevel
Date: 11/07/2006 13:52:57
In article <20061107020654.7f5b2cc1.unex@linija.org>,
Mindaugas  <unex@linija.org> wrote:
>Great work, Christos!
>
>> 	- malloc vs alloca performance
>Well, alloca performs much better, but the main problem, that it is not
>supported by all platforms, is it?

No, that is not the problem; it is supported by all platforms. A few "variable"
allocations can be eliminated if we assume that PAGE_SIZE is constant, which
is in most cases, except sparc generic. Others can be fixed by assuming upper
bounds (which might be a better solution anyway). We could also compile the
code with -Wno-stack-protector, and avoid the issue alltogether.

christos