CodeView (cv.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.
                                    -♦-