I have a function written in C which looks like this
void function1(){
if(!some_condition){
function1();
}
}
This is compiled in gcc on a RedHat linux based machine. Is there a profiling tool that can tell me the maximum amount of stack space used by the code?