Tell the difference

Tell me the difference between object code and executable file.

Hey @Spartan_online, let me explain you that :

In simple words, executable code is the code in machine language (binary code)which is directly understood by the computer and executes it without further simplification needed while Object code is the code produced by a compiler or interpreter .It need not necessarily be machine code as in C language .It can also be byte code in case of Java language where it needs to be further simplified to binary code , to be referred to as executable code.

Thus a program in binary code or machine language can be called executable file whereas the program code produced by compiler(can be binary code sometimes in which case it can also be called as executable file)is called an object file.

I hope this answers your question :+1:
Happy Learning :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.