AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

Getting a GNU code compiled using the AIX native compiler

  • 1.  Getting a GNU code compiled using the AIX native compiler

    Posted Thu January 31, 2008 01:05 PM

    Originally posted by: SystemAdmin


    Hi,
    Can some one help me locate the C++ compiler in AIX machine.The version of the AIX is 5 and the release number is 3. I am looking at the native compiler and not the gnu compiler.
    Is xlC the C++ compiler as mentioned above. I find that all the commands cc, xlc, xlC all point to the same link in the AIX machine. So confused whether this is a C compiler or a C++ compiler.

    Also I have a code base, already compiled using the gnu compiler and need to compile it now using the aix native compiler. I would like to get some pointers in that direction too.
    In the overview of “XL C Enterprise Edition for AIX”, a link in the IBM site, there is a bulleted point as “Also includes facilities to help you port application code from GNU C”.

    It would be great, if I could some help in resolving my above mentioned issues.

    Thanks in advance
    Dickson
    #AIX-Forum


  • 2.  Re: Getting a GNU code compiled using the AIX native compiler

    Posted Tue February 05, 2008 06:43 PM

    Originally posted by: SystemAdmin


    "The default C++ command line driver is /usr/vacpp/bin/xlC. The three main C compiler command line drivers are as follows:
    /usr/vac/bin/cc Extended mode C compiler.
    /usr/vac/bin/xlc ANSI C compiler, using UNIX header files.
    /usr/vac/bin/c89 ANSI C compiler, using ANSI C header files." [1]

    I imagine that the binary/executable that each of the above link to examines the command used to invoke the compiler to determine which version of the compiler should be used.

    You might want to start out by looking at the AIX IBM Compiler Information Center here
    http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.compilers.doc/welcome.htm

    There's also a Redbook on 'Developing and Porting C and C++ Applications on AIX' that might be of some use here:
    http://www.redbooks.ibm.com/abstracts/SG245674.html

    Also, this Redbook, 'AIX 5L Porting Guide', might also be of some help in porting:
    http://www.redbooks.ibm.com/abstracts/SG246034.html


    [1] http://www.redbooks.ibm.com/abstracts/SG245674.html

    Message was edited by: bfveale
    #AIX-Forum