Back when VS2 was created, one of the issues dealt with were security 
holes.  In either release 1 (SVS) or release 2 (MVS), the real storage 
manager began presenting "new" pages caused by GETMAIN cleared to X'00', 
the auxiliary storage manager di likewise for "new" slots, and the 
contents supervisor cleared storage before doing a "scatter load" of a 
module.

If the storage is not cleared by the load module, it is cleared by the 
environment.  So not being cleared in the module might make the module a 
speck smaller.

pup

----- Bill Fairchild <[EMAIL PROTECTED] on 07/14/2005 11:32 AM -----

In a message dated 7/14/2005 1:25:32 A.M. Central Daylight Time, 
[EMAIL PROTECTED] writes:

IIRC, DS  0H will fill 
with zeros just as will DC 0H.  Why is the latter  preferable? 


DS 'any operand'  will not fill the reserved space with  anything.  The 0H 
in 
this case functions only to align to a half word  boundary.
 
DC 'any operand' will fill with X'00' bytes any space that is  skipped 
over 
in order to provide the requested alignment, then generate the  requested 
constant.  But if the 'any operand' has a multiplier of 0, then  no 
filling code of 
X'00' bytes is generated.  In this case the 0H functions  the same as if 
the 
DC were a DS, namely you get aligned to a half word  boundary.
 
Bill Fairchild



-----------------------------------------
The information contained in this communication (including any attachments
hereto) is confidential and is intended solely for the personal and
confidential use of the individual or entity to whom it is addressed.  The
information may also constitute a legally privileged confidential
communication.  If the reader of this message is not the intended recipient
or an agent responsible for delivering it to the intended recipient, you
are hereby notified that you have received this communication in error and
that any review, dissemination, copying, or unauthorized use of this
information, or the taking of any action in reliance on the contents of
this information is strictly prohibited.  If you have received this
communication in error, please notify us immediately by e-mail, and delete
the original message.  Thank you

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to