There is an easy way. At program startup, you can check how much stack you
have. If it is not enough, then simply AllocMem() the stack you need, and
point A7 to the end of the allocated memory block. At program termination,
point A7 to the original location and free the memory you allocated.