Why do we need a format for binary executable files
Posted
by
user3671483
on Programmers
See other posts from Programmers
or by user3671483
Published on 2014-05-28T14:14:32Z
Indexed on
2014/05/28
15:53 UTC
Read the original article
Hit count: 260
When binary files (i.e. executables) are saved they usually have a format (e.g. ELF or .out) where we have a header containing pointers to where data or code is stored inside the file. But why don't we store the binary files directly in the form of sequence of machine instructions.
Why do we need to store data separately from the code?
Secondly when the assembler creates a binary file is the file is among the above formats?
© Programmers or respective owner