Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly 370 > Re: PL/S progra...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 16 of 16 Topic 311 of 328
Post > Topic >>

Re: PL/S programming language

by Ralf Lenzen <LenzenUndPartner@[EMAIL PROTECTED] > Oct 9, 2007 at 09:42 PM

Paul Hinman schrieb:
> Does anyone know anything about the PL/S language that IBM used for 
> operating system type code?  I don't believe that they ever released it 
> to the public but it often appeared on the micro-fiche and it looked to 
> be very PL/1 like.
> 
> Paul
> 

Hi Paul,
in the late 80es a small software house tried to ****t an Application,
which was running under VM and TSO to DPPX.
It was written in PL/AS but in the new Environment
only PL/DS was available.

PL/DS II was for 370 CPU, there was also a Version for
the 8100.
PL/DS II had a funny register allocation scheme.
It needs a base register for every 4K of the Programm Text
plus one Base Register for every 4K of automatic Variables.
Internal Procedures were not recursive, because PL/DS II
stored the Return Address in a static location
( not stack allocation scheme for internal procedures )
There were a couple of Compiler Bugs,
In case of register starvation the compiler didnt properly
manage to save registers into main storage, use them for
compilation und reload them later.
There was a macro phase before the compilation phase.

Some Differences to PLI:

DCL A CHAR(8) INIT('TEST1');
DCL B CHAR(6) INIT('WOCK' );

CALL T1(A) ;
CALL T1(B) ;

T1 : PROC ( ARG );
DCL ARG CHAR(*) ;
DCL VARIABLE CHAR(10) ;

.... VARIABLE = ARG(1:8) ;  /* SUBSTR in PLI */
.... VARIABLE = ARG(1:0) ;  /* Copies 256 chars not 0 */
....
      CALL T1(ARG) ; /* DOESNT WORK IN PLDS, NO RECURSION */

....
END T1 ;

In the second CALL the result of the substr
is not what one might expect.
The second substr the result is unexpected to someone
who isnt familiar with 370 ASM and the EX Instruction.

MfG
   Ralf
 




 16 Posts in Topic:
PL/S programming language
Paul Hinman <paul.hinm  2007-09-15 03:53:18 
Re: PL/S programming language
someone@[EMAIL PROTECTED]  2007-09-15 23:19:17 
Re: PL/S programming language
Anne & Lynn Wheeler &  2007-09-16 09:12:10 
Re: PL/S programming language
"Joe Morris" &l  2007-09-16 15:15:55 
Re: PL/S programming language
"Sarr J. Blumson&quo  2007-09-16 23:43:59 
Re: PL/S programming language
krw <krw@[EMAIL PROTEC  2007-09-16 20:21:45 
Re: PL/S programming language
Peter Flass <Peter_Fla  2007-09-16 22:50:03 
Re: PL/S programming language
"Jim Mehl" <  2007-09-16 19:19:21 
Re: PL/S programming language
"John H. Lindsay&quo  2007-09-18 09:37:33 
Re: PL/S programming language
Al Kossow <aek@[EMAIL   2007-09-18 08:21:36 
Re: PL/S programming language
Frank McCoy <mccoyf@[E  2007-09-18 10:31:45 
Re: PL/S programming language
glen herrmannsfeldt <g  2007-09-18 11:22:15 
Re: PL/S programming language
Frank McCoy <mccoyf@[E  2007-09-18 13:58:49 
Re: PL/S programming language
Anne & Lynn Wheeler &  2007-09-16 13:22:25 
Re: PL/S programming language
Ralf Lenzen <LenzenUnd  2007-10-09 21:40:42 
Re: PL/S programming language
Ralf Lenzen <LenzenUnd  2007-10-09 21:42:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:27:49 CDT 2008.