Skip to content

Instantly share code, notes, and snippets.

@t3rmin4t0r
Created July 29, 2010 18:51
Show Gist options
  • Save t3rmin4t0r/498913 to your computer and use it in GitHub Desktop.
Save t3rmin4t0r/498913 to your computer and use it in GitHub Desktop.
int main()
{
__asm__(";foo");
char a[1024] = {0,};
__asm__(";end");
/*
# 4 "x.c" 1
;foo
# 0 "" 2
leal 12(%esp), %ebx
movl $0, %eax
movl $256, %edx
movl %ebx, %edi
movl %edx, %ecx
rep stosl
# 6 "x.c" 1
;end
# 0 "" 2
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment