Get the latest tech news

Using GCC's Nested Functions with Wide Pointers and No Trampolines II


Martin Uecker, 2026-07-14 When the address of a nested function is taken, GCC creates at trampoline at run-time. This trampoline is placed on the stack, which means that the stack has to be executable.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of gcc

gcc

Photo of Nested Functions

Nested Functions

Photo of wide pointers

wide pointers

Related news:

News photo

GCC 17 Compiler Adding "-m128bit-atomic" For 128-bit Atomic Memory Operations

News photo

GCC 16.2 Released With More Than 100 Fixes

News photo

GCC Adopts Policy Rejecting Significant AI-Generated Code