Microsoft Interview Question

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