7526 DCT Reference


Compiling and Linking a CFR

compiling and linking a CFR

General

The CFR writer builds a function with a "main(function,*paramlist)" entry point; compiles with the appropriate include files, and links with the CFRAPI26.LIB library provided (and any other libraries required) to create a CFR program file.

The 7526 DCT application program interface library, CFRAPI26.LIB, contains:

An include file CFRAPI26.H is provided for the CFR writer which contains 7526 DCT API function prototypes, defined constants, and return code defines.

Required Compiler and Linker

The IBM C/2 Version 1.10 Compiler and IBM Linker/2 Version 1.10 are supported.

Compile Command

The following compiler invocation command is recommended:

Note:

The CFRAPI26.H must be in the path specified in the SET INCLUDE= statement for the C compiler or in the current directory.

Link Command

The following format is recommended for the link operation:

Note:

Ensure that linkage is with a real mode "C" library, and not with a protected mode library. If floating point functions are used, the library linked must contain "Alternate" math routines (that is, LLIBCAR). Additionally, ensure that CFRAPI26.LIB is in the path specified in the SET LIB= statement for the C compiler.
.