![]() | ![]() | ![]() | Associating Labels with Procedure Entry Points |
To enable you to generate correct code for calls, I have included
a component in the declaration descriptor format used for
procedures named entrylbl
. It is intended
to hold the "code label" placed on the first line of the actual
code for the procedure. It will be used whenever you need to generate
a JSR to the procedure.
The type of the entrylbl
field is determined by the value of
the #define CODELBL
. If you do not include a #define
for CODELBL
, it defaults to the type char
.
However, if you have declared a special type to hold code labels,
you can #define
CODELBL
to be the name of that type.
For example, if your type's name was
codelabel
, you would
simply include the define
#define CODELBL codelabelsomewhere before the
#include
for symtab.h
. The definition
of codelabel
will also have to precede this include in most cases.
While I have included the entrylbl
field in each procedure declaration
descriptor, it is up to your code to set this field.
![]() | ![]() | ![]() | Associating Labels with Procedure Entry Points |