New interface for function code generation
Add: stack size