I often see the terms "binary" and "executable" seemingly used interchangeably. Isn't it two terms to describe the same thing; the executable output program after a compilation process, that I can run on the terminal?
What does strengthen my assumption that these two terms are the same is that it is a common practice to provide a bin
folder ("bin" as an abbreviation for "binaries") inside the installation folders of an application to store the executable files in, which users can run.
I have read the question and answers of What's the difference between binary and executable files mentioned in ndisasm's manual?. However, the question and their answer are more focused on the respective environments of Clang and ndisasm.
I´ve also read the question and the answers of https://softwareengineering.stackexchange.com/questions/121224/what-are-binaries at the Software Engineering forum, but also here no distinction between an executable and a binary, only what the term of "binary" in general can refer to:
But, in Computing, Binary refers to :
- Binary file, composed of something other than human-readable text
- Executable, a type of binary file that contains machine code for the computer to execute
- Binary code, the digital representation of text and data
[Source: https://softwareengineering.stackexchange.com/a/121235/349225]
where, in the context of the output program of a compilation process, a binary was referred to as the same as an executable, as well as:
The word binaries is used as a set of files which are produced after compiling essentially the object code that runs on machines. (and virtual machines/runtimes in case of Java/.NET)
[Source: https://softwareengineering.stackexchange.com/a/121234/349225 ]
where it was referred to the same.
- What is the difference between "binaries" and "executables" in the context of an executable program?
- Where is the distinction?
binaries
andexecutables
are different sets with some overlap. A binary likels
is an executable. A perl script can also be an executable, but is no binary, and a mp3 file is a binary, but no executable. – Grouchy