Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us