An improved process for executing a dump is provided. The iteration loops are
made "smart" by allowing them to determine how big the arrays are on the fly and
adjust their behavior accordingly. The process uses a function to calculate the
amount of memory to allocate for the dump list based on the dump mode and array
sizes. Thus, if the static arrays are modified to add or delete constants or the
diagnostic code is in an abbreviated dump mode, the amount of memory to be allocated
will be calculated accurately.