IBM Support

Compiling the cpp file of a plan file

Question & Answer


Question

How can I compile the cpp file of my plan file?

Answer

To compile a cpp file, use the Diab dplus program. It is located in the /nz/kit.4.5/sbin/diab/5.0.3/LINUX386/bin directory.

The following is an example of the command syntax: 

/nz/kit.4.5/sbin/diab/5.0.3/LINUX386/bin/dplus -Xc++-old -c -o /export/home/nz/log/s23083_78.o -Xexceptions -Xchar-signed -Xmember-max-align=4 -Xenum-is-int -D__PPC__ -tPPC440ES -DNZ_CPU_TYPE=44024 -Xkeywords=0x1F -Xlint=0xfffffffd -Xlicense-wait -Xsmall-data=0 -Xno-bss -Xsmall-const=0 -DNZDEBUG=0 -DGENCODE -DFOR_SPU -I /nz/kit.4.5/sys/include "/nz/kit.4.5.2.P4/log/planshist/8/1265/s1265_1.cpp" 

In this example, the output file specified by the -o option is: /export/home/nz/log/s23083_78.o

In this example, the input file is, nz/kit.4.5.2.P4/log/planshist/8/1265/s1265_1.cpp (the .cpp file for each snippet which is formed inside the plan directory).


1. Before you run dplus, you must set the DIABLIB environment variable. To set this value globally, edit the bash_profile file. To set the value for this session only, run the following commands as the nz user:

export DIABLIB="/nz/kit.4.5/sbin/diab/5.0.3/" 

env | grep DIABLIB

DIABLIB=/nz/kit.4.5/sbin/diab/5.0.3/ 

2. After the environment variable is set, run the dplus command with the input and output file specifications that you need.

[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":null,"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Historical Number

NZ073452

Document Information

More support for:
IBM PureData System

Software version:
1.0.0

Document number:
463897

Modified date:
17 October 2019

UID

swg21571706