COMPILERTARGET (Set Default Target Value)

The COMPILERTARGET (Set Default Target Value) command sets the default value for the compiler option TARGET.

Syntax

Explanation

Many of the language compilers can produce code files that run only on a particular set of computer families. For more information, refer to the description of the TARGET compiler option in the appropriate language reference manual.

The COMPILERTARGET command changes the default value of TARGET. The new value remains in effect until it is changed by another COMPILERTARGET command. The value specified in the COMPILERTARGET command is preserved across all halt/loads, but not across cold-starts. After a cold-start, the value is reset to the default value supplied by the manufacturer. The primary and secondary target values are specified as an operator set (LEVEL6, ALL) or as a machine name (for example, GE1500).

Supported Target Values provides the supported primary and secondary target values.

Table 1. Supported Target Values

ALL

CS470

CS4380

CS4390

CS6380

CS6390

CS6480

CS6490

CS8480

CS8490

CS8580

CS8590

DE1000

DE1001

FS600A

FS600M

FS601A

FS601M

FS800A

FS800M

FS1000

FS1001

FS1770

GE0500

GE0501

GE1000

GE1001

GE1500

GX3000

LEVEL6

THIS

VSE47

VS1500

XE1000


Most compilers generate code files that are optimized for the systems represented by the primary target, subject to the compatibility constraints of the systems represented by the secondary targets. For example, the compiler optimizes the code for the primary target but does not generate an operator unless it is supported by all of the secondary targets.

The target value THIS is equivalent to specifying the current machine name. If the target value specifies a machine name, it is mapped to the machine’s primary operator set. 

Some machines support extensions to the LEVEL6 operator set which can improve code file performance. To enable these extensions by default, set COMPILERTARGET = THIS.  Use caution with this feature since the compiled code may not be executable on all LEVEL6 machines. Check the COMPILERTARGET response to see how the setting affects code file compatibility.

ALL and LEVEL6 are currently synonyms. If these values are specified, the generated code file can run on all supported machines.

LEVEL6 code files are optimized for level Eta systems. See Supported Target Values for a list of currently supported level Eta system target values.

COMPILERTARGET

Displays the current default value of the TARGET compiler option.

COMPILERTARGET = <primary target>

Assigns the specified target value as the default value for the TARGET compiler option.

COMPILERTARGET = <primary target> (<secondary target>)

Assigns the specified primary target value as the default value and also assigns the secondary target value.

Examples

The following lists a sample response to the command COMPILERTARGET LEVEL6:

COMPILERTARGET LEVEL6
BY DEFAULT THE COMPILERS ON THIS MACHINE GENERATE LEVEL6              
                                                                      
      CODE TAILORED FOR THESE MACHINES:   
                                      CS470      CS4380               
                                      CS4390     CS6380               
                                      CS6390     CS6480               
                                      CS6490     CS8380               
                                      CS8390     CS8480               
                                      CS8490     DE1000               
                                      FS600A     FS600M               
                                      FS601A     FS601M               
                                      FS1000     FS1770               
                                      GE0500     GE1000               
                                      GE1500     GX3000               
                                      VSE47      VS1500               
                                      XE1000