Binyamin Dissen wrote:


How would a zero length CSECT be placed in a load module?
It doesn't take up any space - so it would just be given
the next offset, a following CSECT would be placed at the
same offset I assume.

The question really is, do any of the other attributes associated
with such a CSECT (in particular the AMODE/RMODE attributes)
affect the resulting load module (or program object.)

If you had, for example:

   CSECT
   AMODE 24
PROG CSECT
PROG  AMODE 31
           BR 14
           END PROG

and didn't specify any particular AMODE/RMODE options
on the linker/binder, what would the resulting AMODE/RMODE
of the load-module be?   And, even more interesting is "why".

Does the empty CSECT contribute to that decision, or is it
dismissed because it is empty?

I couldn't find anything in the doc that would indicate its
dismissed, but I think it might be...  I believe some experimentation
is in order.   If I determine the behavior today, without
documentation indicating that, it seems it's free to change
in the future.

  - Dave Rivers -


--
riv...@dignus.com                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to