Is it necessary to allocate the stack?