This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Nested functions
- From: "John Yates" <jyates at netezza dot com>
- To: <gcc-help at gnu dot org>
- Cc: "Marco Gerards" <mgerards at xs4all dot nl>
- Date: Thu, 29 Dec 2005 10:33:16 -0500
- Subject: RE: Nested functions
Wednesday, December 28, 2005 7:51 AM mgerards@xs4all.nl wrote:
> The second problem is caused because some OS'es have no executable
> stack. Redhat even removes the nested functions from our code so it
> builds for them. But of course it would be better for all of our
> users if it just works.
Is it not the case that building the trampoline on the stack is
simply an efficiency issue, akin to alloca versus malloc? Surely,
at least in C++ with support for calling destructors, trampolines
could be build on the heap.
/john