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

What is the need to use LTORG


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

New User


Joined: 17 Jun 2010
Posts: 2
Location: chennai

PostPosted: Thu Jun 17, 2010 1:01 pm
Reply with quote

hi i have a doubt in LTORG. when we are going to use LTORG and what is the need to use
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Jun 17, 2010 1:14 pm
Reply with quote

Use the LTORG instruction so that the assembler can collect and assemble literals into a literal pool. A literal pool contains the literals you specify in a source module either after the preceding LTORG instruction, or after the beginning of the source module.

The creation of a literal pool gives the following advantages:

•Automatic organization of the literal data into sections that are correctly aligned and arranged so that minimal space is wasted in the literal pool.
•Assembling of duplicate data into the same area.
•Because all literals are cross-referenced, you can find the literal constant in the pool into which it has been assembled.
Back to top
View user's profile Send private message
ursanthu21
Currently Banned

New User


Joined: 18 Jun 2010
Posts: 2
Location: chennai

PostPosted: Fri Jun 18, 2010 4:00 pm
Reply with quote

hi perter will you please explain with the example.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jun 18, 2010 5:28 pm
Reply with quote

Hi Peter,
I am an unconscionable lazy sh*t,
who has no interest in exerting any effort on my part,
to read manuals, technical papers, or even to just think about what I have just read.

So, could you please spoon-feed me information on the following subjects,
because it is so much easier for you
to figure out how to make me understand the subject,
instead of me exerting any effort to learn, understand or even
take any responsibility for my life.

have a good weekend.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jun 18, 2010 6:15 pm
Reply with quote

Quote:

I am an unconscionable lazy sh*t,
who has no interest in exerting any effort on my part,
to read manuals, technical papers, or even to just think about what I have just read.

So, could you please spoon-feed me information on the following subjects,
because it is so much easier for you
to figure out how to make me understand the subject,
instead of me exerting any effort to learn, understand or even
take any responsibility for my life.


Nothing new for me there, Dick.

And a great weekend for you too.
Back to top
View user's profile Send private message
mkreutzian

New User


Joined: 26 Jan 2007
Posts: 3
Location: Iowa

PostPosted: Wed Jun 23, 2010 11:22 pm
Reply with quote

The primary reason I use the LTORG is to relocate the Literal pool to within the base register when I am using massive tables in my programs.
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 Difference between LTORG ... PL/I & Assembler 1
No new posts Where do we use LTORG PL/I & Assembler 1
Search our Forums:

Back to Top