Prepare for your Next Interview
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]...
|
|||
|
Re: Content of an obj file in C
Quote:
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 |
|
|||
|
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. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |