|
VMS Help CC, /PSECT_MODEL *Conan The Librarian |
/PSECT_MODEL=MULTILANGUAGE
/PSECT_MODEL=NOMULTILANGUAGE (D)
Controls whether the compiler allocates the size of overlaid psects
to ensure compatibility when the psect is shared by code created by
other HP compilers.
The problem this switch solves can occur when a psect generated by
a Fortran COMMON block is overlaid with a psect consisting of a C
struct. Because Fortran COMMON blocks are not padded, if the C
struct is padded, the inconsistent psect sizes can cause linker
error messages.
Compiling with /PSECT_MODEL=MULTILANGUAGE ensures that HP C uses a
consistent psect size allocation scheme. The corresponding Fortran
switch is /ALIGN=COMMON=[NO]MULTILANGUAGE.
The default is /PSECT=NOMULTILANGUAGE, which is the old default
behavior of the compiler, and is sufficient for most applications.
|
|