Compiling for Shared Global Data [ Technical Addendum for HP Link Editor/iX ] MPE/iX 5.0 Documentation
Technical Addendum for HP Link Editor/iX
Compiling for Shared Global Data
To share global data across object modules, you do not need to recompile
an application. You only need to relink the application. Refer to
"Linking for Shared Global Data" .
Global Data Limit
There is a limit to the number of data references (approximately 2000)
allowed per program file and per module in an XL. If this limit is
exceeded, the Link Editor emits an error message instructing you to
recompile the appropriate modules to allow more external data references.
Refer to "Diagnostic Messages" for the error message.
Use the LISTPROG command with the ;DATA and ;VALUE options to list the
data symbols in a program file. Count the number of Data Unsats listed
to determine how close the program file is to the limit.
Use the LISTXL command with the ;DATA and ;VALUE options to list the data
symbols in an XL. Count the number of Data Unsats listed per module to
determine how close a module is to the limit. If an XL is close to or
over the limit, you can restructure the module so that it does not go
over the limit for data references. You can also hide symbols with
HIDERL; refer to "Hiding Data Symbols" for more information. If you
do not restructure your modules, you must recompile them using one of the
new compiler options.
Table 1-3 lists the new compiler options available to allow more
external data references.
Table 1-3. Compiler Options for Additional External Data References
--------------------------------------------------------------------------------------------
| | |
| Option | Languages |
| | |
--------------------------------------------------------------------------------------------
| | |
| $MORE_GLOBALS ON$ | MPE/iX compiler option available on HP Pascal/iX. |
| | |
--------------------------------------------------------------------------------------------
| | |
| $CONTROL MOREGLOBALS | MPE/iX compiler option available on HP COBOL II/iX. |
| | |
--------------------------------------------------------------------------------------------
| | |
| +k | Command-line option, available on HP C/iX. |
| | |
--------------------------------------------------------------------------------------------
NOTE If an application needs to be recompiled and the compiler does not
support one of the new compiler options, the application can either
be restructured to have fewer global data references or relinked
without specifying the SHARE option. Refer to "SHARE Option"
for more information.
MPE/iX 5.0 Documentation