4 ms·
I thought this is what trampolines are: http://en.wikipedia.org/wiki/Trampoline_(computing) http://en.wikipedia.org/wiki/Trampoline_(computing) http://gcc.gnu
by majke 13y ago
I thought this is what trampolines are:
http://en.wikipedia.org/wiki/Trampoline_(computing) http://en.wikipedia.org/wiki/Trampoline_(computing)
http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
FFcall can be used to do simillar things:
http://www.gnu.org/software/libffcall/ 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 http://www.haible.de/bruno/packages-ffcall.html
- thedigitalengel 13y agoOn llvm: http://llvm.org/docs/LangRef.html#trampoline-intrinsics http://llvm.org/docs/LangRef.html#trampoline-intrinsics
- popee 13y agoDidn't know about GNU ffcall until now, so thanks, very useful stuff.