Diff between Object Code and Binaries

Newbie here:

I read and hear the terms object code (.o) and binaries. Are they referring to the same files?

Thanks.

Object files are just files that the compiler creates from source that get linked together into the executable files.

Binary files are any non-text files, really. Your executable would be a binary file. So would images, sounds etc.
In the context of programming, "binaries" contain compiled code for a target system. DLLs, EXEs, LIBs, etc. are all binaries. In the context of programming a PNG would not be considered a binary, but a resource, even though it uses a non-text format.
Last edited on
Topic archived. No new replies allowed.