i370 port - constructing compile script
Paul Edwards
mutazilah@gmail.com
Fri Oct 2 00:19:00 GMT 2009
>>>>> But from the Unix system, I need to be able to generate the
>>>>> above very simple compile script, which is a precursor to creating
>>>>> very simple JCL steps (trust me, you don't want to see what
>>>>> ST2CMP looks like). Note that the JCL has the filenames
>>>>> truncated to 8 characters, listed twice, uppercased, and '-'
>>>>> and '_' converted to '@'.
>
>> Why are you not making use of z/OS Unis System Services? GNU Make and
>> other GNU tools are available and already built for z/OS.
USS is not available for free, or even for a price on MVS 3.8j,
and it is not native MVS, it is an expensive overhead.
It's a bit like asking "why don't you use a JCL emulator instead
of make on Unix?". :-)
You know, even as a batch job with JCL, people then said to me
that reading the C source from a file instead of "standard input"
(ie stdin, ie //SYSIN DD) is really weird, and so I had to make a
pretty small mod to GCC to allow "-" as the filename, so that
the JCL at least looks like a normal MVS compiler.
> Perhaps because he is a hacker in the good ol' sense of the word ?
>
> Mjam, MVS, JCL, the possibility of COBOL, perhaps even PL/1 ...
Both Cobol and PL/1 front-ends are already supported to some
extent ...
http://www.opencobol.org/
http://pl1gcc.sourceforge.net/
although we're not really at the stage of even attempting to get
that onto native MVS.
Actually, PL/1 basically requires GCC 4.x, which is my main
interest in upgrading 3.4.6 to 4.x. :-)
Someone else said he would like to see PL/S, and maybe if
PL/1 was available, the super-secret PL/S language would
start to be made available.
But it all rests on getting the HLASM-generator working on a more
modern GCC. :-)
And C90 is the lingua franca.
> [ Over a quarter of century ago I worked at the computer center
> of the Dutch Postal Service. One of my colleagues managed the
> IBM system group. He had an assistant to write the JCL jobs he needed
> for him. ]
Maybe for old times sake you'd like to load up:
http://mvs380.sourceforge.net
It comes with GCC so you can now do what you always wanted
to do back then. :-) And of course, all perfectly usable on z/OS
too. Natively. :-)
850,000 lines of assembler. Like wow, man. I wonder what
GCC 4.4 will clock in as? 3.2.3 was 700,000, so we're probably
up to a million lines of pure 370 assembler. :-)
BFN. Paul.
More information about the Gcc
mailing list