-r

Category

Object code control

@PROCESS

None.

Purpose

Produces a nonexecutable output file to use as an input file in another ld command call. This file may also contain unresolved symbols.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -r---------------------------------------------------------><

Defaults

Not applicable.

Usage

A file produced with this flag is expected to be used as an input file in another compiler invocation or ld command call.

Predefined macros

None.

Examples

To compile myprogram.f and myprog2.f into a single object file mytest.o, enter:
xlf myprogram.f myprog2.f -r -o mytest.o