Difference between Machine code and Object Code

Jazz picture Jazz · Jan 21, 2010 · Viewed 7.7k times · Source

I'm in the middle of my a levels and im doing some revision for my Computing exam. I was wondering if someone could tell me what the difference is between machine code and object code.

keep it it simple please.

Answer

Eric Mickelsen picture Eric Mickelsen · Jan 21, 2010

Object code is the output of the compiler. It contains instructions and tokens like your source code, but in a compact and optimized (often executable) format. It can also contain other things like debugger symbols. Usually, object code is then processed by the linker, which connects the object code from each compilation unit together to form an executable (or library, such as a dll). The executable or library contains machine code, which can be executed directly by the processor and is specific to the machine architecture and operation set.