1. In a compiler, a method of generating assembly code to aid in stack unwinding of a memory stack, the method comprising: obtaining one or more source code lines; and generating assembly code for the one or more source code lines, the assembly code including one or more stack unwind assembler directives, each of the stack unwind assembler directives having one or more associated stack unwind sub directives, each of the stack unwind assembler directives being adapted for indicating to an assembler that one or more encoded data sections containing information to be used during stack unwinding is to be generated from the one or more associated stack unwind sub directives.