This is a possible idea to implement #3608 by static analysis of stack usage to create a statically sized stack depth at compile-time.