Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created July 12, 2012 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/742c6d86d57c6eafa900 to your computer and use it in GitHub Desktop.
Save bnoordhuis/742c6d86d57c6eafa900 to your computer and use it in GitHub Desktop.
__asm__ (
"f:"
//"xorq %rcx, %rcx;"
"movq $1, %rcx;"
"repz;"
"retq;"
"call abort;");
int main(void)
{
void f(void);
f();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment