The only remaining form of declaration descriptor is that used to
represent names defined as functions and procedures. The type
used for such descriptors is named procdesc and is shown
in figure *.
The formallist component of a procdesc structure
points to a list of declaration descriptors stored as structures
of type formaldesc. This list should contain the declaration
descriptors for all of the formal parameters associated with the
procedure. This list will be used to type check calls made to the
procedure or function. The paramcount field should be set
equal to the number of parameters the procedure or function expects.
The isfunc field is a Boolean set to
true if the name is declared as a function (rather than a procedures).
The number of memory units required for local variables and temporary
storage is stored in localsize. Finally, the entrylbl
field is used by the code generator to generate jumps to the
procedure's entry point.