Geeks Talk

Prepare for your Next Interview




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 FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-05-2007
Expert Member
 
Join Date: Oct 2006
Posts: 690
Thanks: 0
Thanked 49 Times in 41 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


Similar Threads

Thread Thread Starter Forum Replies Last Post
Listen to any PDF file!!! Shivanna Geeks Lounge 6 10-03-2008 12:28 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 12:58 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved