3.2 Preprocessing a Program for Parallel Execution Using kapc

To execute KAP as a standalone preprocessor, use the following commands as follows:

cc /define=(__KAP,__ALPHA,__DECC,_FASTMATH,_INLINE_INTRINSICS,_INTRINSICS) -
            /NOLINE_DIRECTIVES/PREPROCESS_ONLY=ktmpa416.c  myprog.c

kapc /cmp=myprog_cmp.c ktmpa416.c  /conc

cc/optimize=(tune=host,level=4)/ANSI_ALIAS myprog_cmp.c

link /threads_enable/EXECUTABLE=myprog.exe myprog_cmp.obj,SYS$COMMON:[SYSLIB]kio/lib,
SYS$COMMON:[SYSLIB]kmp/lib


Note
When you use kapc to preprocess a file, you must set the DEC C compiler and linker qualifiers appropriately. For this reason, Digital recommends that you use kcc whenever possible, as kcc automatically sets the compiler and linker qualifiers correctly.


Previous Page Next Page Contents Index
Command-Line Qualifiers