1 /*$ -fomit-frame-pointer $*/
6 unsigned __attribute__((noinline)) get_sp(void)
9 asm("mov %%esp, %0": "=r" (esp));
16 #ifndef __INTEL_COMPILER // ICC does not align the stack
17 unsigned sp = get_sp();
19 printf("stack is unaligned after call: 0x%X\n", sp);