Skip to content

Instantly share code, notes, and snippets.

@manuel
Created July 18, 2009 19:07
Show Gist options
  • Save manuel/149660 to your computer and use it in GitHub Desktop.
Save manuel/149660 to your computer and use it in GitHub Desktop.
// lambda trampoline
#include <stdio.h>
void foo(char *s)
{
__asm("foo_label:");
printf("%s\n", s);
}
void
foo_trampoline(char *s)
{
__asm("jmp foo_label");
}
main()
{
foo_trampoline("hey");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment