Technical data
Compiler Commands [2]
If a file is specified, information about the compilation is displayed in addition
to the version information. The additional information includes the compiler
generation date, the compilation execution time, the maximum memory used by
the compiler (in decimal words), and the resulting number of words used for
code and data.
2.22.3 -X npes (CC, cc)
(UNICOS/mk systems) The -X npes option specifies how many processing
elements (PEs) are to be used on Cray T3E systems. The npes argument specifies
the number of PEs and has no default value, it must be explicitly set. For the npes
argument, specify either an integer from 1 through 2048 or m. A value of m directs
the compiler to generate a malleable a.out file. Specifying -X m allows you to
change the number of PEs used each time the executable a.out file is run. If
you specify -X m, use the mpprun command and its -n option to specify the
number of PEs you want to use. For more information, see the mpprun(1) man
page. If you do not use mpprun on the a.out file that is generated when -X m is
specified, the operating system executes the file on a single processor just as if
you had invoked mpprun with one processor.
The option is passed from the command to both the compiler and the loader. If
the compiler recognizes the option, it becomes a compile-time value and cannot
be changed at load time. If the loader recognizes the option, it is a load-time
value and cannot be changed at mppexec time. For example:
cc -X8 -c file.c
cc -X8 file.c
In these cases, the value 8 is set at compile time only. In the first line, the loader
is not called (specified by the -c option) and the option is passed only to the
compiler. In the second line, the option is passed to both the compiler and
the loader, but since it is first recognized by the compiler it is a compile-time
constant, not a load-time constant.
In the following case, the value 8 is used at load time only. The compiler is
not called because no source file is specified and the option is passed only to
the loader.
cc -X8 file.o
The -W option can also be used to specify which phase of compilation gets the -X
option. For example:
cc -W0,-X8 file.c
cc -Wl,-X8 file.c
S–2179–36 41










