News for hackers. Stuff that matters.
Re:IBM COBOL for Linux on x86 by IainIreland on Wednesday April 07, 2021 @07:04PM (#26732716)
I worked on the IBM COBOL compiler in a past life. It's not LLVM based; the optimizer and code generator are derived from J9, the IBM JVM. I would be a bit surprised if they open-sourced it; OpenJ9 is open-sourced, but the COBOL compiler for Z is one of those rare compilers that is still being sold to paying customers.
Re:IBM COBOL for Linux on x86 by CountHackulus on Wednesday April 07, 2021 @09:17PM (#26733912)
Did I work with you!? I also worked on the COBOL backend for TR. And yeah, I'd also be HIGHLY surprised if it ever got open-sourced.
Re:IBM COBOL for Linux on x86 by IainIreland on Thursday April 08, 2021 @01:52AM (#26735504)
We must have just missed each other. I started in January 2014.
Re:IBM COBOL for Linux on x86 by aparsons on Wednesday April 07, 2021 @07:10PM (#26732782)
Thanks for the insight. I strongly suspect the COBOL compiler buyers are really just buying ongoing support and updates. Open sourcing should result in minimal revenue impact, but shared code might make it quite problematic license wise. Wouldn’t blame them for turning down that headache.
Re:IBM COBOL for Linux on x86 by skissane on Thursday April 08, 2021 @12:11AM (#26735010)
> I worked on the IBM COBOL compiler in a past life. It's not LLVM based; the optimizer and code generator are derived from J9, the IBM JVM.

Does it have anything in common with XL C? Does it use W code as an intermediate language?

And what language is it written in? (PL/X? PL.8? C/C++?)

Re:IBM COBOL for Linux on x86 by IainIreland on Thursday April 08, 2021 @01:54AM (#26735520)
Assuming nothing's changed since I left, the front-end is taken from the old COBOL compiler, and is written in PL/X. It emits WCode for the backend, which is written in C++.

XL C is a separate codebase, with very little shared code IIRC.