This article was previously published under Q51294
This article has been archived. It is offered "as is" and will no longer be updated.
If, for any reason, you believe that the stack in a FORTRAN program isbeing corrupted, you can monitor the stack segment (SS) register andstack pointer (SP) register by using either the Microsoft Assemblerpackage. Since CodeView may use the stack for its own purposes, this allowsa more direct monitoring method.
A function for each package is shown below along with the appropriateinterface statement. Each function returns an integer*4 to FORTRAN.
To extract the hexadecimal values from that integer, use a formatstatement something similar to the following example: