H-Series Application Migration Guide (H06.03+)

Reporting Compiler Optimization Problems
H-Series Application Migration Guide429855-006
C-4
Creating an Optimize File
Creating an Optimize File
An optimize file is a text file that specifies an optimization level at which a particular
routine should be compiled. The optimize file is then specified in a parameter on the
compiler run command. All routines not specified in the optimize file are compiled at
the level specified on the command line. The format of an optimize file is:
procedure optimization-level
procedure.subprocedure optimization-level
The command line parameter to specify the optimize file depends on the compiler and
environment:
Guardian Environment PC or OSS Environment
C/C++ compiler
OPTFILE filename -Woptfile=filename
pTAL compiler
OPTIMIZEFILE=filename OPTIMIZEFILE filename