15.00 - Compiling and Linking a C INMOD on HP-UX Itanium - Parallel Data Pump

Teradata Parallel Data Pump Reference

prodname
Parallel Data Pump
vrm_release
15.00
category
Programming Reference
featnum
B035-3021-034K

Compiling and Linking a C INMOD on HPUX Itanium

Use the following syntax example to compile a C INMOD on an HP‑UX Itanium‑based client.

Compile Syntax

where

 

Syntax element

Description

cc

Invokes the native C compiler

+u1

Is a compiler option that allows pointers to access nonnatively aligned data

D_REENTRANT

Ensures that all the Pthread definitions are visible at compile time

+DD64

Generates 64bit object code for PA2.0 architecture

c

Compiles one or more source files but does not enter the linking phase

inmod.c

A C source module for the INMOD

Use the following syntax example to link the object modules on HP‑UX Itanium into the shared object.

Link Syntax

where

 

Syntax element

Description

ld

Invokes the UNIX linker editor

n

Generates an executable with file type SHARE_MAGIC. This option is ignored in 64bit mode.

b

Is a linker option specified to generate a shared object file

inmod.o

Is an object module derived from the compile step

lc

Search a library libc.a, libc.so, or libc.sh

o

Specifies the output filename; default is a.out

inmod.so

Specifies the resulting shared object module

This is the userspecified name in the IMPORT command.

Note: Object modules can be linked into shared objects or shared libraries (for example, .so or .sl extension respectively) on HPUX Itanium.