Re: zero-initialization of variables



That was a very interesting post. You responded to several people in one
post though which is confusing.

I may not be quoting you accurately but you say in response to Glen SVC
forms of various macros don't load to previously GETMAINed areas. I'm not
sure what you were getting at there. LOAD uses SVC entry and both the ADDR
and ADRNAPF parameters load the module to storage previously GETMAINed by
the caller.

I found your comments interesting and I'd like to set up a test of your
assertion the linkage editor did not clear the load module and that this can
be proven by linking multiple load modules. Do you have a scenario in mind?
If so I'll try and run it on MVS 3.8J. You did not explain sufficiently why
the first (only) load module is created properly with zeros in uninitialized
areas and only 2nd thru nth load module has leftover data at least not that
I could understand. GETMAIN does not supply storage cleared to binary zeros
except under specific limited circumstances but perhaps the linkage editor
fulfilled those (full page or more of specific subpools, etc.) and the first
time it used the storage it was indeed clean.

Sorry for not quoting your post directly but my newsreader barfed on
your encoding when I tried to reply.

.



Relevant Pages

  • Re: LOAD a module into CSA/ECSA
    ... :>I guess it's possible someone might be moving random load modules ... :>the load module is also the person responsible for maintaining the ... Should you use the mailblocks package and expect a response from me, ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: Re-entrant module stores into itself with no 0C4
    ... I thought that in this situation, the entire load module would be marked non-reentrant by the linkage editor and treated as such during execution; e.g., a new copy would be loaded each time the module is called. ... a S0C4 will only occur if you store into storage that is not allocated or that is allocated with the "wrong" storage protect key. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Best practice for 24-bit storage in assembler called from C/C++
    ... But can you IDENTIFY an address in GETMAIN storage? ... have to be inside a "real" load module? ... Best practice for 24-bit storage in assembler called from C/C++ ... Otherwise, you can get the storage from your assembler routine, and then ...
    (bit.listserv.ibm-main)