how to find stack size of a program