Results 1 to 4 of 4

Thread: Content of an obj file in C

  1. #1
    Expert Member
    Join Date
    Oct 2006
    Answers
    209

    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]


  2. #2
    Junior Member
    Join Date
    Jul 2007
    Answers
    6

    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


  3. #3
    Junior Member
    Join Date
    Feb 2007
    Answers
    1

    Re: Content of an obj file in C

    a loe level language code or compiled code


  4. #4

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact