Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Content of an obj file in C

This is a discussion on Content of an obj file in C within the C and C++ forums, part of the Software Development category; What is the exact content of an obj file in C ? NOTE : [This question was asked by Cool boy]...

Go Back   Geeks Talk > Software Development > C and C++
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 01-05-2007
Expert Member
 
Join Date: Oct 2006
Posts: 689
Thanks: 0
Thanked 53 Times in 44 Posts
JobHelper is on a distinguished road
Content of an obj file in C

What is the exact content of an obj file in C ?

NOTE : [This question was asked by Cool boy]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-04-2007
Junior Member
 
Join Date: Jul 2007
Location: India, Orissa, Bhubaneswar
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
niladribihari is on a distinguished road
Re: Content of an obj file in C

Quote:
Originally Posted by JobHelper View Post
What is the exact content of an obj file in C ?

NOTE : [This question was asked by Cool boy]
The aim of the C Programming is to produce an independent executable code. It happens in two steps e.g. Compiling & Linking.

After compilation the “Source code” (which is written by a programmer) gets converted in to “Object code” which is placed in a file called Object File.

“Object Code” is just the translation of “Source Code”, which can be referred as machine language code.

But it is not the complete executable code, which can run alone unless included with “Startup code”(it is an Operating System specific code requires to start the program, as different OS handles execution of programs differently) & “Library codes” (it contains object code for many library functions, which are used widely in "Source code" e.g. printf(), scanf(), etc..).

The next step i.e. linking takes responsibility to include “Startup code” & the required pre-compiled codes from “Library files” to create a complete executable program.

Thanks,
Niladri
Reply With Quote
  #3 (permalink)  
Old 08-06-2007
Junior Member
 
Join Date: Feb 2007
Location: INDIA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sree.srinu38 is on a distinguished road
Re: Content of an obj file in C

a loe level language code or compiled code
Reply With Quote
  #4 (permalink)  
Old 08-23-2007
Junior Member
 
Join Date: Jul 2007
Location: banglore
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
rajeshmavuloori is on a distinguished road
Re: Content of an obj file in C

hi,
if u compile source code automatically obj file is created.
It contains machine understandable language(ie., low level language) only machine purpose.
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Listen to any PDF file!!! Shivanna Geeks Lounge 7 01-13-2009 09:18 AM
Reading a TSR file JobHelper QTP 1 07-27-2007 07:33 AM
Can we edit the file fred Windows 1 09-13-2006 01:06 PM
Content Assist Lokesh M HTML & CSS 0 06-26-2006 08:37 AM
WebSphere V5.0 : Use content assist Lokesh M Web Tools 0 06-02-2006 09:12 AM


All times are GMT -4. The time now is 05:15 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved