[MIGRATED] [PATCH] still not sure about how to make a proper stack frame, but

NOTE: auto-magically re-imported by HAL 9000
HASH: 2961d9e239 (original)
This commit is contained in:
Jonathan Campbell
2014-05-20 08:24:07 -07:00
committed by aybe
parent 54c2919645
commit ac5496eed5

23
docs/chk/chk.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <stdio.h>
void __attribute__((noinline)) func1(int arg1) {
int stuff1 = 3,stuff4 = 4;
printf("%u/%u/%u\n",stuff1,stuff4,arg1);
}
int main() {
int alloc1 = 2,alloc2 = 4;
printf("%u/%u\n",alloc1,alloc2);
{
int alloc3 = 22,alloc4 = 44;
printf("%u/%u\n",alloc3,alloc4);
}
func1(99);
return 0;
}