What's the parameter stack in the C

kah at hpfclq.UUCP kah at hpfclq.UUCP
Wed Jan 18 11:34:00 AEST 1984


What is the parameter stack in the C compiler for ?

I assume you are referring to the array paramstk[].  This array is used
to save information about the members of a structure, union, or enum
while the declaration is being parsed.  After the entire declaration is
parsed, the information is copied over to the 'dimtab' array.

The name 'paramstk' is misleading since it has nothing to do with "parameters".
When a function definition header is being parsed, information on formal
parameters is saved in an array called the 'argstk'.

These comments refer to the system III compiler.  



More information about the Comp.lang.c mailing list