HP 3000 Manuals

Native Code Generator [ HP Micro Focus COBOL/iX Implementation Notes ] MPE/iX 5.0 Documentation


HP Micro Focus COBOL/iX Implementation Notes

Native Code Generator 

This section contains Hewlett-Packard specific information about the HP
Micro Focus COBOL/iX Native Code Generator.

Native Code Generator Compiler Directives 

There are several NCG options available for the Series 700 and 800.  They
are listed and described later in this chapter.  They can be invoked in
either of the two ways listed below.

   *   Use the N option followed by the option name on the cob command
       line.  Use quotes if you are passing more than one option.  For
       example, to invoke hpoptimize this way, type:

            cob -cx -N hpoptimize file.cbl

   *   Some of the NCG options have cob command line interfaces.  These
       interfaces are listed below.  For example, to invoke hpoptimize,
       type:

            cob -cx -O file.cbl

       Note that some of the options cannot be specified this way.

Options that are specified by using -N option-name are passed to the NCG
only.  Options that are specified by using the cob command line interface
may also pass options to other components of the system such as the
compiler.

          Table 7-1.  Native Code Generator Options 

------------------------------------------------------------------
|                                                                |
|    Option                 Description             cob Command  |
|                                                   Line Option  |
|                                                                |
------------------------------------------------------------------
|                                                                |
| hpoptimize=n  This option sets the NCG                None     |
|               optimization level to n.  If n=0                 |
|               there is no optimization.  If n=1                |
|               optimization is at level 1.                      |
|                                                                |
| hpoptimize    This option sets the NCG               -O(1)     |
|               optimization level to the highest                |
|               available optimization level,                    |
|               currently level 1.  This option is               |
|               passed to the NCG by default.  If                |
|               you specify this option on the cob               |
|               command line with -O, you are also               |
|               sending other options to cobol.                  |
|                                                                |
------------------------------------------------------------------

(1) The default behavior for this option may change in a future release.



MPE/iX 5.0 Documentation