After reading the following question, I understand that there no such thing exist (at least not 'portable').
However I am starring at the following piece of code from mono code base, which return a pointer to the stack:
static void *
return_stack_ptr ()
{
gpointer i;
return &i;
}
I am surprised that the above code can even work on arch such as PowerPC, I would have assumed this would only work on x86 (and maybe only gcc).
Is this going to work on PowerPC ?