Re: Program Interrupts (signals)
I am happy to try this ... but I clearly need more hints / examples! Where should I start? Can you help? A
By
adriansutherland67
·
#1078
·
|
Re: Program Interrupts (signals)
Useful thanks
By
adriansutherland67
·
#1077
·
|
Re: Program Interrupts (signals)
Is there an example assembler doing this?
By
adriansutherland67
·
#1076
·
|
Re: Program Interrupts (signals)
Not sure what you mean ... how can I use os interrupt handlers without os macros?
By
adriansutherland67
·
#1075
·
|
Re: Program Interrupts (signals)
Indeed, VM/SP does not clean up: q cmslevel VM/SP Release 5, Service Level 521 Ready; T=0.12/0.50 13:29:06 type divzero exec /* check divide by zero */ 'DMSIBM' 'q n' Ready; T=0.01/0.04 13:29:14
By
[email protected]
·
#1074
·
|
Re: Program Interrupts (signals)
Since this version of Fortran came from the OS world, it almost certainly uses SPIE to get control on a program check. Bob
By
Bob Polmanter
·
#1073
·
|
Re: Program Interrupts (signals)
The point is that I am trying to make gcclib avoid the need for a IPL if a client program happens to cause an abend ...
By
adriansutherland67
·
#1072
·
|
Re: Program Interrupts (signals)
Exactly. But I need a hint about how to catch it! How does the Fortran runtime do it?
By
adriansutherland67
·
#1071
·
|
Re: Program Interrupts (signals)
If I must I must ... I will just have to use infinite monkeys!
By
adriansutherland67
·
#1070
·
|
Re: Program Interrupts (signals)
PrincOps. You can find it on bitsavers.. http://www.bitsavers.org/pdf/ibm/370/princops Joe adrian@...> wrote:
By
Joe Monk
·
#1069
·
|
Re: Program Interrupts (signals)
Dave, Thats my point. Just as fortran catches the divide by zero, so Adrian should have a C runtime that does the same thing, no? Joe
By
Joe Monk
·
#1068
·
|
Re: Program Interrupts (signals)
Have you a link ... I can't think what pops means!
By
adriansutherland67
·
#1067
·
|
Re: Program Interrupts (signals)
Considering a shared GCCLIB and BREXX, and thinking of a REXX program calling something like EXECIO also leveraging GCCLIB. Well I need a way to know that a program (say EXECIO) had bought a farm and
By
adriansutherland67
·
#1066
·
|
Re: Program Interrupts (signals)
Joe, Yes you can take control, but the question I would ask is do you want to? What are you going to do if a program does a divide by zero,. For example FORTRAN already catches divide by zero¡. So
By
Dave Wade
·
#1065
·
|
Re: Program Interrupts (signals)
The VM/370 System Programmers Guide, page 238: "The program interruption handler, DMSITP, receives control when a program interruption occurs. When DMSITP gets control, it stores the Program old PSW
By
Joe Monk
·
#1064
·
|
Re: Program Interrupts (signals)
That is exactly as Bob wrote. I've checked POPS for System/370 - on page 72 you have all serviceable exceptions wit old and new PSW what probably cover all cases. And this is as in Unix world - the
By
Piotr Kolasi¨½ski
·
#1063
·
|
Re: Program Interrupts (signals)
I don¡¯t think there is an issue with the OS interrupt handlers, the problem with OS macros is that if you are using OS storage the chains get cleaned at program termination time. Provided you are
By
Dave Wade
·
#1062
·
|
Re: Program Interrupts (signals)
STAE is an OS macro as well.?? I can't recall for sure but if memory serves this macro provides almost nothing in CMS.? I seem to recall it being a no-op. Bob
By
Bob Polmanter
·
#1061
·
|
Re: Program Interrupts (signals)
Adrian, Divide-by-zero does indeed cause a program check interruption 9.? If you are concerned about this possibility, mitigate it in your C code by checking the divisor first to see if it is zero.?
By
Bob Polmanter
·
#1060
·
|
Re: Program Interrupts (signals)
Can¡¯t we use STAE? Or is that also one of those ¡¯tainted¡¯ OS macro¡¯s?
By
[email protected]
·
#1059
·
|