Previous Topic: Defining Compound Conditions

Next Topic: Externalizing the Function Interface

Understanding Shared Subroutines

The main objective of shared subroutines is to optimize the generation of internal functions that are implemented as subroutines. The first instance of generated source for the function is reused for all subsequent calls to the function within an action diagram instead of being repeatedly regenerated. These changes apply to CHGOBJ, CRTOBJ, DLTOBJ, RTVOBJ, and EXCINTFUN function types.

Some advantages of shared subroutines are: