OBJECT | NOOBJECT
Category
Compiler output
Pragma equivalent
#pragma options (object) (C only), #pragma options (noobject) (C only)
Purpose
Produces an object module, and stores it in the file that you specify, or in the data set associated with SYSLIN.
Syntax
Defaults
OBJECT
Parameters
- Sequential filename
- Specifies the sequential data set file name for the object module.
- Partitioned data set
- Specifies the partitioned data set for the object module.
- Partitioned data set (member)
- Specifies the partitioned data set (member) for the object module.
- z/OS UNIX System Services filename
- Specifies the z/OS® UNIX System Services file name for the object module.
- z/OS UNIX System Services directory
- Specifies the z/OS UNIX System Services directory for the object module.
Usage
The GOFF compiler option specifies the object format that will be used to encode the object information.
- If you are compiling a data set, the compiler uses the source
file name to form the name of the object module data set. The high-level
qualifier is replaced with the userid under which the compiler is
running, and
.OBJ
is appended as the low-level qualifier. - If you are compiling a z/OS UNIX file, the compiler stores
the object module in a file that has the name of the source file with
an
.o
extension.
CXX HELLO (NOOBJ(./hello.obj) OBJ
CXX HELLO (OBJ(./hello.obj)
CXX HELLO (NOOBJ(./hello.obj) OBJ(./n1.obj) NOOBJ(./test.obj) OBJ
CXX HELLO (OBJ(./test.obj)
If you request a listing by using the SOURCE, INLRPT, or LIST option, and you also specify OBJECT, the name of the object module is printed in the listing prolog.
In the z/OS UNIX System Services environment, you can specify the object location by using the -c -o objectname options when using the c89, cc, c++, cxx, xlc, xlC, or xlc++ commands. In the z/OS UNIX System Services environment, the -o flag option is used to specify the name of the object file.
OBJECT(xxx)
IPA effects
IPA Compile uses the same rules as the regular compile to determine the file name or data set name of the object module it generates. If you specify NOOBJECT, the IPA compile step suppresses object output, but performs all analysis and code generation processing (other than writing object records).
When you use the c89 utility for IPA Link invocation, the object is assigned to //DD:SYSLIPA and should not be changed by specifying the OBJECT compiler option.
c89 does not normally keep the object file output from the IPA link step, as the output is an intermediate file in the link-edit phase processing. To find out how to make the object file permanent, refer to the prefix_TMPS environment variable information in the c89 section of z/OS UNIX System Services Command Reference.
Predefined macros
None.