My bad, -m32. I've beta tested the compiler and I can confirm it works.
On 6/5/22 07:08, David Crayford wrote:
The compiler supports a -m31 flag and ships with a 31bit runtime library.
On 6 May 2022, at 5:56 am, Charles Mills <charl...@mcn.org> wrote:
Got it. Must insert some sort of glue if you call a method declared AMODE 31.
I wonder how it handles data areas in that situation. I wonder if you have to
malloc31() if you are going to pass the data to a 31-bit method. What about C++
new? Perhaps you cannot pass classes to non-clang/LLVM programs, and they are
all AMODE 64. I guess that would be okay.
Still would like to RTFM. I guess I am a dinosaur.
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of Mike Schwab
Sent: Thursday, May 5, 2022 2:00 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: New IBM Open C++ compiler
Didn't say it ran in AMODE 31. Said it can call AMODE 31 programs.
On Thu, May 5, 2022 at 5:08 PM Charles Mills <charl...@mcn.org> wrote:
It supports AMODE 31
The cited blog says "generates AMODE 64 code."
Is there any actual documentation, or am I being old-fashioned?
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of David Crayford
Sent: Thursday, May 5, 2022 7:20 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: New IBM Open C++ compiler
The new clang/LLVM C/C++ compiler has been announced
https://community.ibm.com/community/user/ibmz-and-linuxone/blogs/robert-barrington1/2022/04/05/next-generation-of-ibm-cc-and-fortran-compilers-av.
I suppose it was wishful thinking to expect it to be free as IBM have
commit a lot of resources to making it happen. It's only available to
customers who have a license for the XL C/C++ compiler. If you use C/C++
I highly recommend this compiler. It's modern supporting all the latest
language standards and is a significant improvement on the
xlclang/xlclang++ compilers previously shipped. It supports AMODE 31 for
interop with legacy code whereas xlclang was 64-bit only.
If you are interested in a free C/C++ compiler then Rocket have open
sourced their gcc/glibc z/OS port. It's a cross compiler so you build on
a Linux or Windows machine. AFAIK, glibc is fairly complete but is
missing pthreads.
https://github.com/ambitus/gcc
https://github.com/ambitus/glibc
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN