I want to allocate on the heap a stack frame for each function call, but for that I need to modify the stack base pointer for each function.

Is there any way to get that pointer and modify it in C under Linux?