This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]