I need to fill all available stack space with specific character for profiling purposes.
First of all, is there a safe way to do this on Android(some compiler specific functions maybe) in C++? If not, may I assume the address of first variable declared in a function is the "start" of "unused" stack? If not is there a way to get current stack pointer, something like ESP value on x86?