CodeView (cv.hlp) (Table of Contents; Topic list)
Stack Trace (Notes)
 Summary Description Example           Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The term "stack trace" is used because as each function is
     called, its address and arguments are stored on or pushed onto
     the program stack. Therefore, tracing through the stack shows
     the currently active functions. With C programs, the function
     main is always at the bottom of the stack.
 
     The Stack Trace (K) command does not display anything until the
     program executes at least to the beginning of the main procedure.
     The main procedure sets up the stack traces through frame pointers
     (BP), which CodeView uses to locate parameters, local variables,
     and return addresses.
 
     If the main module is written in assembly language, the program
     must execute at least to the beginning of the first procedure
     called. In addition, your procedures must follow the standard
     Microsoft calling conventions.
                                    -♦-