1. A method for processing software code, comprising: determining programmatically that a variable of a first function is required to be available for use by a second function subsequent to return of the first function; and using a processor to generate automatically for the first function machine code configured to escape the variable from a storage location in a stack memory to a storage location in a heap memory prior to the variable being removed from the stack memory in connection with return of the first function.