Sorry, I have to apologize ...
the error is NOT a GENMOD problem,
instead the message is written by XRUNPARM itself, when it tries to load
the GENMODed Pascal program ...
I should have looked there first. Didn't remember that XRUNPARM does
such a BADSIZE check,
because it worked for decades, and I never saw such a message.
There must have been some changes in z/VM, compared to prior versions,
which invalidate the size
computations of XRUNPARM, see this logic:
MVC PROGNAME,PLSTPROG OBTAIN PROGRAM NAME
MVC MODNAME,PROGNAME INSERT PROGRAM NAME IN FSCB
FSSTATE FSCB=MODFSCB,ERROR=NOMODULE ENSURE PROGRAM EXISTS
USING FSTD,R1
MVC MODMODE,FSTFMODE SET FILE MODE
DROP R1
FSREAD FSCB=MODFSCB,ERROR=BADMOD READ MODULE DESCRIPTOR
FSCLOSE FSCB=MODFSCB CLOSE MODULE FILE
LA R5,MODESCR POINT TO MODULE DESCRIPTOR
USING STRTADDR,R5
LA R0,ENDRUN POINT TO END OF INTERFACE
C R0,FRSTLOC DOES MODULE OVERLAY INTERFACE ?
BH BADORG YES
L R2,LASTLOC OBTAIN LAST LOCATION ADDRESS
S R2,FREELOWE WILL MODULE FIT IN STORAGE ?
BP BADSIZE YES
I will have to examine this and try to find out what's wrong with this
in modern z/VM.
Sorry again, have a nice day.
Bernd
Am 11.07.2023 um 22:50 schrieb Bernd Oppolzer:
Update: the error only occurs, if I specify the ORIGIN parameter on
the LOAD command;
if I don't, the first object is loaded at hex 20000, and the GENMOD
works without problems.
But: because my command line mapping program (XRUNPARM) runs first and
then calls the
Pascal program, the Pascal program needs to have the ORIGIN 20580 ...
XRUNPARM is loaded at X'20000'.
And: when I specify 20580 as origin, I get errors like below,
maybe directly on the GENMOD
or later, when XRUNPARM tries to load the GENMODed Pascal program:
Ready;
xrunparm fibok
"FIBOK MODULE A1" REQUIRES 246K MORE STORAGE
Ready(00104);
???
Any suggestion is appreciated ...
Kind regards
Bernd
Am 11.07.2023 um 22:24 schrieb Bernd Oppolzer:
Hello all,
I know that this is maybe not the right list for asking questions on
the VM/CMS system,
but forgive me ... I am registered to many lists, but no VM list, and
today I have a problem
which could be a simple problem, so I would like to try it here.
I am trying to build my Pascal compiler on a z/VM machine which is
new to me.
It worked already on old VM/370 R6 machines and also on other flavors
of VM,
but I never did it on a recent z/VM.
To get the Pascal programs running, it is important to build modules
using GENMOD.
Because the Pascal programs on VM work much the same as the z/OS
versions,
and the mapping of the VM command line (instead of the z/OS JCL parm)
is done by
another small module which runs BEFORE the pascal program ... and
this module
then calls the Pascal program MODULE.
So I need GENMOD on my Pascal programs to work.
But:
when I do GENMOD on my Pascal programs on this particular machine,
it always complains about not enough storage.
Thats ridiculous, because there is plenty of virtual storage (512 M).
I can do the GENMOD on only small parts of the Pascal module, like this:
LOAD PASMONN PASLIBX PASUTILS PASSNAPC FIBOK ...
GENMOD FIBOK ( FROM $PASENT TO ERRMON
"FIBOK MODULE A1" REQUIRES 135K MORE STORAGE
Ready(00104);
LOAD PASMONN PASLIBX PASUTILS PASSNAPC FIBOK ...
GENMOD FIBOK ( FROM $PASENT TO $PASINT
"FIBOK MODULE A1" REQUIRES 131K MORE STORAGE
Ready(00104);
LOAD PASMONN PASLIBX PASUTILS PASSNAPC FIBOK ...
GENMOD FIBOK ( FROM $PASENT TO $PASMAIN
"FIBOK MODULE A1" REQUIRES 244K MORE STORAGE
Ready(00104);
... as you can see, the amount of storage required increases with the
size of
the module part that I want to be GENMODed.
BTW: if I do LOAD and then START, the Pascal program runs without
problems.
But then I have other problems, because I cannot pass the CMS command
line
as runtime parameters to the Pascal program (which works on other
versions of VM,
using the GENMODed variants of my Pascal programs).
It seems as if the GENMOD here has an own storage limit which is VERY
LOW,
and even small parts of the loaded Pascal program cannot be GENMODed.
What am I missing?
This is (AFAIK) zVM 7.2.
Thanks a lot, best regards
Bernd
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN