Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Whats difference between object code and load module?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
abhay pratap singh

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Wed Jan 21, 2009 10:20 am    Post subject: Whats difference between object code and load module?
Reply with quote

Please let me know Whats difference between object code and load module.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 21, 2009 10:31 am    Post subject:
Reply with quote

Hello,

Object code is the output of a compile or an assembly.

A load module is the output of the linkage editor and is the executable.
Back to top
View user's profile Send private message
abhay pratap singh

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Wed Jan 21, 2009 10:39 am    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Object code is the output of a compile or an assembly.

A load module is the output of the linkage editor and is the executable.

But I want to know what is the difference between the output of compile and linkage editor. Why output of compile is not executable.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 21, 2009 10:50 am    Post subject:
Reply with quote

Hello,

The difference is that one is object (intermediate) code and the other is executable (final).

Quote:
Why output of compile is not executable.
Because the environment is designed this way.

Not everything in an object module is resolved. The linkage editor uses the object module and other needed components as "input", resolves unresolved references, and formats the output as a load module that is stored in a load library. Compiled object output is considerably different than linkedited load module output.

If you browse the output from a compile and the output from the linkedit of the same program, you will notice considerable differences.

Do you have some requirement or is this primarily for learning?
Back to top
View user's profile Send private message
abhay pratap singh

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Wed Jan 21, 2009 10:53 am    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

The difference is that one is object (intermediate) code and the other is executable (final).

Quote:
Why output of compile is not executable.

Do you have some requirement or is this primarily for learning?


This is just for learning.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 21, 2009 11:18 am    Post subject:
Reply with quote

Hello,

Quote:
This is just for learning.
As more is learned, there will be more questions. Someone should be here to clarify when new questions arise.

At the top of the page there is a link to "IBM Manuals". Among the cobol material is the Enterprise COBOL Programming Guide. This manual has considerable material that will answer what you ask. It also far more info that will become useful. Much of what we are talking about is here:
2.0 Compiling and debugging your program
Back to top
View user's profile Send private message
km_abdullah

New User


Joined: 03 Nov 2008
Posts: 60

PostPosted: Wed Jan 21, 2009 11:57 am    Post subject:
Reply with quote

Hi Abhay,
Quote:

The linkage editor uses the object module and other needed components as "input", resolves unresolved references, and formats the output as a load module that is stored in a load library.


One example for the above is, if your program calls a subprogram then the location of load module of subprogram has to be mentioned in the linkediting step. This is one main difference b/w object code and load module.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Strange Code amitc23 COBOL Programming 6 Tue Nov 28, 2017 11:25 am
No new posts Finding difference between two PS fil... Vignesh Sid SYNCSORT 5 Mon Oct 30, 2017 1:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us