Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them, it only takes a minute:

This question already has an answer here:

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.

share|improve this question

marked as duplicate by ThinkingStiff, DocMax, Lance Roberts, X.L.Ant, EdChum Mar 1 '13 at 8:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

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.

share|improve this answer
    
I think object code is the output of the assembler wheras assembler code is the output of the compiler (.S, .s. .asm) – ha9u63ar Jun 27 '13 at 8:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.