Microsoft interview question

How would you write a program to show a stack trace given a raw stack dump.