Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What is latest full version for AIX xlC V8.0

17 views
Skip to first unread message

Alex Vinokur

unread,
Jun 22, 2009, 7:29:36 AM6/22/09
to
Hi,

What is latest full version for AIX xlC V8.0 ?

> /usr/vacpp/bin/xlC_r -qversion
IBM XL C/C++ Enterprise Edition V8.0 for AIX
Version: 08.00.0000.????


Thanks
Alex Vinokur

Hajo Ehlers

unread,
Jun 22, 2009, 7:52:36 AM6/22/09
to
On Jun 22, 1:29 pm, Alex Vinokur <ale...@users.sourceforge.net> wrote:
> Hi,
>
> What is latest full version for AIX xlC V8.0 ?
>
> > /usr/vacpp/bin/xlC_r -qversion
>
> IBM XL C/C++ Enterprise Edition V8.0 for AIX
> Version: 08.00.0000.????

Answer: 22

- Go http://www-01.ibm.com/software/awdtools/caix/
- Search right side: Highlights
- Select: Latest updates for supported IBM C and C++ compilers

Or go directly : http://www-01.ibm.com/support/docview.wss?uid=swg24022586
( Valid only for April 2009 PTFs )

hth
Hajo


Alex Vinokur

unread,
Jun 23, 2009, 2:16:44 AM6/23/09
to
On Jun 22, 2:52 pm, Hajo Ehlers <serv...@metamodul.com> wrote:
> On Jun 22, 1:29 pm, Alex Vinokur <ale...@users.sourceforge.net> wrote:
>
> > Hi,
>
> > What is latest full version for AIX xlC V8.0 ?
>
> > > /usr/vacpp/bin/xlC_r -qversion
>
> > IBM XL C/C++ Enterprise Edition V8.0 for AIX
> > Version: 08.00.0000.????
>
> Answer: 22
>
> - Gohttp://www-01.ibm.com/software/awdtools/caix/

>  - Search right side: Highlights
>  - Select: Latest updates for supported IBM C and C++ compilers
>
> Or go directly :        http://www-01.ibm.com/support/docview.wss?uid=swg24022586
> ( Valid only for April 2009 PTFs )
>
> hth
> Hajo

Hajo, thank you.

Predefined macros __xlC__ and __IBMCPP__ indicate the level of the XL
C++ compiler: version, release, and modification number. But they
don't contain full version.

For intance,


> xlC_r -qversion
IBM XL C/C++ Enterprise Edition V8.0 for AIX

Version: 08.00.0000.0014

Neither __xlC__ nor __IBMCPP__ contain 0014.

Is there any way (system call) to get within C++ program full version
of the the XL C++ compiler?

Alex Vinokur

Hajo Ehlers

unread,
Jun 23, 2009, 6:32:04 AM6/23/09
to

I was going to point you to the IBM C++ Cafe
http://www-949.ibm.com/software/rational/cafe/community/ccpp/

but its looks like that you asked there as well. Since i can not help
further - i even do not understand fully what you trying to archive -
but maybe Gary Hook can give an answer. In case you get a satiesfying
answer from the IBM Cafe please post it to this thread as well.

cheers
Hajo

Alex Vinokur

unread,
Jun 25, 2009, 7:34:11 AM6/25/09
to
> I was going to point you to the IBM C++ Cafehttp://www-949.ibm.com/software/rational/cafe/community/ccpp/

>
> but its looks like that you asked there as well. Since i can not help
> further - i even do not understand fully what you trying to archive -
> but maybe Gary Hook can give an answer. In case you get a satiesfying
> answer from the IBM Cafe please post it to this thread as well.
>
> cheers
> Hajo- Hide quoted text -
>
> - Show quoted text -

Hi,

--- aix.cpp ---
// ==================================================
// __xlC__ indicates the level of the XL C++ compiler
// as a three-digit hexadecimal constant, representing
// version, release, and modification number.
// Using the XL C compiler also automatically defines this macro.
// ==================================================
#include <iostream>
int main()
{
#if (defined __xlC__)
std::cout << "Version : " << (__xlC__ >> 8) << std::endl;
std::cout << "Release : " << ((__xlC__ >> 4) & 0xF) <<
std::endl;
std::cout << "Modification: " << (__xlC__ & 0xF) << std::endl;
#endif

return 0;
}
---------------

> xlC_r aix.cpp

> a.out
Version : 8
Release : 0
Modification: 0


> xlC_r -qversion
IBM XL C/C++ Enterprise Edition V8.0 for AIX
Version: 08.00.0000.0014

So, program aix.cpp doesn't generate full version (including 0014 in
our case).

Is it possible within C/C++ program to get full version of compiler.

Regards,

Alex Vinokur

Hajo Ehlers

unread,
Jun 25, 2009, 10:40:29 AM6/25/09
to

Your program is some how incorrect. (IMHO)
1) The __xlC__ macro simply does not provide the Fix level ( Thats
what yor are looking for )
2) Even if you change from __xlC__ to __xlc your programm simply does
not print the fix level.

According to

http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=/com.ibm.xlcpp8a.doc/compiler/ref/xlmacros.htm

only the macro "__xlc__" will have also the (F)ix level . All other
provide a maximum of (V)ersion.(R)elease.(M)odification

hth
Hajo

Alex Vinokur

unread,
Jun 25, 2009, 11:05:36 AM6/25/09
to
> http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?to...

>
> only the macro  "__xlc__" will have also the (F)ix level . All other
> provide a maximum of (V)ersion.(R)elease.(M)odification
>
> hth
> Hajo- Hide quoted text -
>
> - Show quoted text -

Thank you very much.

__xlc__ shows 8.0.0.14

The problem is that __xlc__ defined in C-program, but undefined in C+
+-program.

Alex Vinokur


0 new messages