IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Where do we use LTORG


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Thu Aug 24, 2006 10:24 am
Reply with quote

All,

Where do we use LTORG, I can understand that it is useful in case of arrays.Anyother place it is used ???

Thanks
Back to top
View user's profile Send private message
Bharanidharan

New User


Joined: 20 Jun 2005
Posts: 86
Location: Chennai, India

PostPosted: Fri Aug 25, 2006 5:48 pm
Reply with quote

Here are the situations where it may be needed:
1. You may want to address a variable with huge length (say 20000 bytes); instead of increasing your addressing capability, you may simply move this monster as the last piece; in this case, you may need to pool your literals before this variable, since they would be pooled at the end.
2. Though not conventional, more than one control section may be present within a single source. This situation would require dumping of all literal pools before the beginning of the next CSECT. You would not get any compile errors, but if there is any addressability issue due to the size of any single control section, you may be in a position to compromise the handling of individual CSECT; instead, assigning the literal pool of each CSECT for that CSECT itself helps in localization of addressability issues and hence would enhance immunization.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts A CSECT without an LTORG but uses lit... PL/I & Assembler 13
No new posts What is the need to use LTORG PL/I & Assembler 5
No new posts What is the Difference between LTORG ... PL/I & Assembler 1
Search our Forums:

Back to Top