MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1wb98p8/implementation_of_gccs_nested_functions_vs_c/p8zvkcx/?context=3
r/cpp • u/pavel_v • Sep 09 '26
17 comments sorted by
View all comments
Show parent comment
2
If you take an address of such a function with captures, GCC creates a trampoline function at runtime, that passes the state to the real function.
For details see https://uecker.codeberg.page/2026-08-29.html (same author as OP)
View all comments
Show parent comment
2
u/amoskovsky Sep 10 '26
If you take an address of such a function with captures, GCC creates a trampoline function at runtime, that passes the state to the real function.
For details see https://uecker.codeberg.page/2026-08-29.html (same author as OP)