Compiling and Linking a C INMOD on HP‑UX PA RISC
Use the following syntax example to compile a C INMOD on HP‑UX PA RISC client.
Compile Syntax
where
Syntax element |
Description |
‑Aa |
Option that enables the compiler to conform to ANSI standards |
‑D_HPUX_SOURCE |
Enables the compiler to access macros and typedefs that are not defined by the HPUX Operating System, but not the ANSI standard. |
cc |
Invokes the native C compiler |
+z |
Is a compiler option specified to generate Position Independent Code (PIC) for all user exit routines |
+u1 |
Is a compiler option that allows pointers to access non‑natively aligned data |
sourcefile |
UNIX file name(s) of the source file(s) for the INMOD or notify exit routine |
Use the following syntax example to link the object modules on HP‑UX PA‑RISC into the shared object.
Link Syntax
where
Syntax element |
Description |
ld |
Invokes the UNIX linker editor |
‑b |
Is a linker option specified to generate a shared object file |
inmod.o |
Is an object module derived from the compile step |
o |
Specifies the output filename; default is a.out |
inmod.so |
Specifies the resulting shared object module This is the user‑specified name in the IMPORT command. |