This silly question happened to me when thinking about ways to write an executable binary
from scratch and somehow use it as a starting point for a new programming language project.
Meaning: you can't really make a working language,
if you can't produce and understand what makes a binary executable,
you can't make useful or working programming language.
So how can I make the most basic minimal and lightweight binary executable with as little complexity as possible in the executable itself and the tools that produce it?
How is it (executable binary) produced in the Linux and Windows platforms?
Maybe I need a hex editor not a text editor to achieve it?
Are there specific bits that make up the raw binary file that make it executable or does the operating system have to register it as executable?
Could I simply copy/paste binary code using editor and make it (raw binary file) executabe?