--version (-qversion)

Pragma equivalent

None.

Purpose

Displays the version and release of the compiler being invoked.

Syntax

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

Read syntax diagramSkip visual syntax diagram
        .-noversion---------------.   
>>- -q--+-version--+------------+-+----------------------------><
                   '-=--verbose-'     

Defaults

-qnoversion

--version is not set by default.

Parameters

verbose
Displays information about the version, release, and level of each compiler component installed.

Usage

When you specify --version (-qversion), the compiler displays the version information and exits; compilation is stopped. If you want to save this information to the output object file, you can do so with the -qsaveopt -c options.

-qversion specified without the verbose suboption shows compiler information in the format:
product_nameVersion: VV.RR.MMMM.LLLL
where:
V
Represents the version.
R
Represents the release.
M
Represents the modification.
L
Represents the level.
For more details, see Example 1.
-qversion=verbose shows component information in the following format:
component_name Version: VV.RR(product_name) Level: component_build_date ID: 
component_level_ID
where:
component_name
Specifies an installed component, such as the low-level optimizer.
component_build_date
Represents the build date of the installed component.
component_level_ID
Represents the ID associated with the level of the installed component.
For more details, see Example 2.

Predefined macros

None.

Example 1

The output of specifying the --version (-qversion) option:

IBM XL C/C++ for Linux, V13.1.2 (5765-J08; 5725-C73)
Version: 13.01.0002.0000

Example 2

The output of specifying the -qversion=verbose option:

IBM XL C/C++ for Linux, V13.1.2 (5765-J08; 5725-C73)
Version: 13.01.0002.0000
Driver Version: 13.1.2(C/C++) Level: 150508 
ID: _hnbfIvWfEeSjz7qEhQiYJQ
C Front End Version: 15.1.2(Fortran) Level: 150506 
ID: _EwaE2-iLEeSbzZ-i2Itj4A
C++ Front End Version: 13.1.2(C/C++) Level: 150511 
ID: _YU-wovhCEeSjz7qEhQiYJQ
High-Level Optimizer Version: 13.1.2(C/C++) and 15.1.2(Fortran) 
Level: 150512 ID: _mSHAgvkLEeSjz7qEhQiYJQ
Low-Level Optimizer Version: 13.1.2(C/C++) and 15.1.2(Fortran) 
Level: 150511 ID: _YY5AQvhCEeSjz7qEhQiYJQ

Related information



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us