CS-220, Section 90, Week 6
R. Eckert

HIERARCHY CHARTS

Diagrams used to visualize the logical relationships between
procedures in a program (which procedures call which other
procedures). Calling procedures are on top of called procedures.

EXAMPLE:

code  segment
main  proc  far
      ...
      call  A
      ...
      call  B
      ...
      call  C
      ...
      ret
main  endp
A     proc  near
      ...
      call  D
      ...                                   main
      call  E                                 |
      ...                                     |
      ret                           ----------------------
A     endp                         |          |           |
B     proc  near                   |          |           |
      ...                          A          B           C
      ret                          |                      |
B     endp                         |                      |
C     proc  near              -----------                 F
      ...                    |           |
      call  F                |           |
      ...                    D           E
      ret
C     endp
D     proc  near
      ...
      ret
D     endp
E     proc  near
      ...
      ret
E     endp
F     proc  near
      ...
      ret
F     endp
code  ends