Added stack size to static initializer
Improved printing of generated code