Tuesday, April 28, 2015

C compiler pragmas

Compiler Pragmas:
Compiler pragmas enable you to control various elements of compiler listings, code generation, and building of the object file.


Pragma
Description
ENV
Specifies the intended run-time environment of an object file.
ERRORFILE
Directs Errors and warnings to specified file
ERRORs
Directs compiler to terminate compilation if detects more than specified errors.
EXTENSIONS
Allow source code to use syntax extensions and standard library extensions by HP
HIGHPIN
Specifies that object file should run in HIGHPIN(>=256).
INSPECT
Symbolic debugger is default debugger
NOINSPECT
Systems default debugger is default debugger
RUNNABLE
Directs the compiler to generate executable object instead of linkable
RUNNAMED

SAVEABEND
Controls whether system generates saveabend or not
SYMBOLS
Controls the inclusion of symbols information in the object file.
WIDE
Specifies the data model, which defines the size of the data type
int.
XMEM
Controls which memory model should be used large or small by the object.
NOXMEM
Small memory model.