This stack check implementation leverages the compiler's profiling (gcc -p)