Programming Languages on Power

Power Programming Languages

IBM Power, including the AIX, IBM i, and Linux operating systems, support a wide range of programming languages, catering to both traditional enterprise applications and modern development needs.


#Power


#Servers
#Programminglanguages
 View Only
  • 1.  Trace of XL C Preprocessor input

    Posted 06/26/23 10:57 AM
    Using XL C on z/OS V2R5. I've got a set of #ifdefs in a header file that are not giving me the results I expect. I know on other compilers I've used in the past that there were options to output all input statements showing the #ifdefs and how the logic was processed. I need the same thing for the XL C compiler, but can not seem to find the proper options. I tried PPONLY, but it only showed the output after preprocessing it does not show the #ifdefs, which I need to see how the logic is getting executed.


    ------------------------------
    Eric Erickson
    ------------------------------

    #C/C++andFortran


  • 2.  RE: Trace of XL C Preprocessor input

    Posted 06/27/23 03:53 AM

    This may need to be posted on Z forum. :)  Still fyi @Sean Perry 



    ------------------------------
    SI YUAN ZHANG
    ------------------------------



  • 3.  RE: Trace of XL C Preprocessor input

    Posted 06/28/23 12:41 AM

    hi Si Yuan, 

    We have posted a response to the OP in the IBM-MAIN listserv, and here's what we wrote:

    You can use the SKIPSRC(SHOW) option along with any listing option (Ex. SOURCE) 
    to show the portions of the files. The EXPMAC option is also helpful to see 
    macro expansions.

    @Eric Erickson , there's a community space for the XL C/C++ on z/OS here:  LINK

    Feel free to browse and post any questions you may have about the compiler.  Thanks.



    ------------------------------
    Linda Chui
    Compilation Technology & Enterprise Products
    IBM Canada
    ------------------------------



  • 4.  RE: Trace of XL C Preprocessor input

    Posted 06/29/23 12:31 PM

    Linda, 

    Is that a better place to discuss XL c related problems (like the one I just posted). 



    ------------------------------
    Eric Erickson
    ------------------------------



  • 5.  RE: Trace of XL C Preprocessor input

    Posted 06/30/23 01:17 AM

    hi Eric,

    Do you mean, compared to this forum (hosted under IBM Power Community)?    If you are developing software for zOS then yes, it is better to post XL C related questions in that community  (which is hosted on IBM Z and LinuxOne Community).

    thanks



    ------------------------------
    Linda Chui
    Compilation Technology & Enterprise Products
    IBM Canada
    ------------------------------



  • 6.  RE: Trace of XL C Preprocessor input

    Posted 06/30/23 12:20 PM

    Linda, 

    Yes and thanks. This was the first forum I found on the community that seemed to deal with XL C. So I'll move stuff over there. 

    Thanks 



    ------------------------------
    Eric Erickson
    ------------------------------