3.2 Preprocessing a Program for Parallel Execution Using kapc

To execute KAP as a stand-alone preprocessor, use the following commands:

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

The commands include the following qualifiers and parameters:


Note
When you use kapc to preprocess a file, you must set the C compiler and linker qualifiers appropriately. For this reason, Compaq 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

Copyright © Digital Equipment Corporation. 1999. All Rights Reserved.