What exactly is in object code?

This is a discussion on What exactly is in object code? within the C++ Programming forums, part of the General Programming Boards category; I am reading a C++ book, and it describes the process to create an executable is the following: 1) Write ...

  1. #1
    Shadow12345
    Guest

    What exactly is in object code?

    I am reading a C++ book, and it describes the process to create an executable is the following:
    1) Write source
    2) Compiler reads through source, creates object file
    3) Linker combines object code with other machine language necessary to create an executable
    Im just not exactly sure what is in the object code

    thx

  2. #2
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Object code, or machine language as it is sometimes called, is the binary representation of the assembly output of the compiler. It is the way the computer represents programs internally.

  3. #3
    Shadow12345
    Guest
    Almost, but not quite yet. A linker must resolve library calls in the object code, calculate the start addresses of the program segments and insert them in the executable file header.
    that's the answer I was looking for, thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Include Problems
    By loopshot in forum Game Programming
    Replies: 13
    Last Post: 02-17-2006, 03:22 PM
  2. A question about constructors...
    By Wolve in forum C++ Programming
    Replies: 9
    Last Post: 05-04-2005, 05:24 PM
  3. DirectMusic engine problem
    By VirtualAce in forum Game Programming
    Replies: 7
    Last Post: 03-17-2005, 06:12 PM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21