-qthreaded

Category

Object code control

@PROCESS

None.

Purpose

Indicates to the compiler whether it must generate threadsafe code.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -q--threaded-----------------------------------------------><

Defaults

-qthreaded is the default for the xlf_r, xlf_r7, xlf90_r, xlf90_r7, xlf95_r, xlf95_r7, xlf2003_r, and xlf2008_r commands.

Usage

Specifying the -qthreaded option implies -qdirective=ibmt, and by default, the trigger_constant IBMT is recognized.

The -qthreaded option does not imply the -qnosave option. The -qnosave option specifies a default storage class of automatic for user local variables. In general, both of these options need to be used to generate threadsafe code. Specifying these options ensures that variables and code created by the compiler are threadsafe; it does not guarantee the thread safety of user-written code.

The -qthreaded option does not imply the -qxlf77=nopersistent option. The -qxlf77=nopersistent option improves thread safety by preventing the compiler from saving the addresses of arguments to subprograms with the ENTRY statements in static storage.