nested-functions

Tag

Cards List
#nested-functions

Implementation of GCC's Nested Functions (vs. C++ Lambdas)

Hacker News Top ↗ · 2026-09-05 Cached

This article explains GCC's implementation of nested functions by creating a synthetic structure for parent variable access, comparing it to C++ lambdas in a technical blog post.

0 favorites 0 likes
#nested-functions

Indirect Calling of Nested Functions on GCC Without Executable Stack

Hacker News Top ↗ · 2026-08-29 Cached

The article presents a technique to indirectly call nested functions in GCC without an executable stack by reading pointers from trampolines, suitable for older GCC versions, and implemented in the noplate library.

0 favorites 0 likes
#nested-functions

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

Lobsters Hottest ↗ · 2026-07-17 Cached

GCC 16 ensures nested functions that don't capture variables require no trampolines, improving security. GCC 17 introduces built-in functions to avoid trampolines even for captured nested functions, using wide pointers and static chain registers.

0 favorites 0 likes
← Back to home

Submit Feedback