There seem to be three C/C++ compilers provided by IBM for z/OS. z/OS XL C/C++ (includes the Metal C features) https://www.ibm.com/docs/en/zos/3.1.0?topic=zos-xl-cc This is the legacy compiler developed by IBM for z/OS, and is included with z/OS.
IBM Open XL C/C++ for z/OS https://www.ibm.com/docs/en/open-xl-c-cpp-zos/2.1 This seems to be a Clang/LLVM based compiler that you can download if you are licensed for z/OS XL C/C++. IBM C/C++ for Open Enterprise Languages on z/OS https://www.ibm.com/docs/en/cpp-oel-zos/2.0 This is also a Clang/LLVM based compiler that you can download for free. It is "limited" to being used with the IBM Open Enterprise languages, e.g. Go, Node.js, Python, Java and "Open Automation Utilities". All that being said, it looks like the "Open Enterprise" compiler, at least, uses the standard z/OS XL C/C++ runtime. I am guessing that Open XL C/C++ does as well. >From https://www.ibm.com/docs/en/cpp-oel-zos/2.0?topic=linking-order: Order of linking When the C/C++ for Open Enterprise Languages on z/OSĀ® 2.0 compiler invokes the ld utility to link object files, the compiler processes libraries in the following order: 1. System startup libraries 2. User .o files and libraries 3. C++ standard libraries 4. C standard libraries ________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Charles Mills <[email protected]> Sent: Monday, July 8, 2024 4:32 PM To: [email protected] <[email protected]> Subject: Re: C interface to MVS What does the LLVM project "Clang" compiler -- which is the "new" or "current" IBM C/C++ compiler for z/OS -- use for libraries? Is it open source? Charles On Mon, 8 Jul 2024 17:08:15 -0500, Charles Mills <[email protected]> wrote: >I wasn't sure what you meant. I think what you are asking is: > >Is there a fairly generic C library for MVS other than LE that provides a C >API to common MVS services? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
