Subject: Re: ssp and gcc-4.1
To: None <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 11/07/2006 13:52:57
In article <email@example.com>,
Mindaugas <firstname.lastname@example.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.