On Monday, 11/27/2006 at 06:35 PST, Thomas Kern <[EMAIL PROTECTED]> 
wrote:
> Perhaps it is time for the user community to define and write some 
assembler
> language subroutines to interface bewteen C programs and the VM/CMS
> environment.
> Much like that FORTRAN library that used to be offered by IBM.
> 
> I don't have a C compiler that can be used to test such 
subroutines/functions
> with (except maybe GCC) but I used to enjoy writting those types of 
routines
> when I use to run FORTRAN programs to model the earth's weather. Those 
programs
> ran a lot better under VM/CMS than under MVS.

CSL routines are easy to write and can be called from all languages, 
including REXX.  In fact, fopen() in LE will call BPX1OPN.
- socket() calls BPX1SOC
- read() calls BPX1RED
- write() calls BPX1WRT
- close() calls BPX1CLO

In CMS, the trick would to write a front-end CSL routines for them.  They 
would have to strip off processing for pre-defined files like /dev/prt/00e 
or some such, hiding themselves and calling the "real" CSL routine if it 
isn't a special file.  See the OE CSL Reference.

But that's too much trouble.  Just write CSL routines that wrap PUNCHC, 
RDCARD, and PRINTL macros.

Alan Altmark
z/VM Development
IBM Endicott

Reply via email to