Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

I thought this is what trampolines are:

http://en.wikipedia.org/wiki/Trampoline_(computing)

http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html

FFcall can be used to do simillar things: http://www.gnu.org/software/libffcall/

It has four subprojects:

* avcall - build a C argument list incrementally and call a C function on it.

* vacall - C functions called with variable arguments

* trampoline - closures as first-class C functions

* callback - closures with variable arguments as first-class C functions

[update] used outdated link to http://www.haible.de/bruno/packages-ffcall.html




Didn't know about GNU ffcall until now, so thanks, very useful stuff.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: