logoalt Hacker News

nutjob2yesterday at 11:10 AM1 replyview on HN

The price you pay for GCC nested (local) functions is an executable stack with 'trampolines'.

I'm a fan of nested functions but don't think the executable stack hack is worth it, and using a 'display' is a better solution.

See the Dragon Book or Compiler Construction: Principles and Practice (1984) by Louden


Replies

sirwhinesalotyesterday at 11:18 AM

You misunderstood my comment. GNU local function syntax, C++ [&] lambda behavior (i.e., a hidden struct).

show 1 reply