3 ms·
I kind of wonder why there's no plain text executable format (for the header stuff). Performance hardly should be a problem.
by legulere 10y ago
I kind of wonder why there's no plain text executable format (for the header stuff). Performance hardly should be a problem.
- slezyr 10y ago> Performance hardly should be a problem. Now. Try to open any exe file and first thing you will see is MZ and "This program cannot be run in DOS mode" executable formats are as old as PCs
- AnonymousPlanet 10y agoThe history of computing goes back well beyond PCs. And at their introduction, they were just amateur playgrounds. And yes, executable formats were made for slower machines with less resources.
- XorNot 10y agoIsn't this almost what !# syntax is? It gets pretty close to it.
- dikei 10y agoThere's no such things as plain text, everything is just a series of bytes. The ELF header just happens to be encode in a special schema, instead of plain ASCII :D
- nwmcsween 10y agoThis is exactly what #! does, see Linux binfmt_script.c. ld.so is an interpreter for a specific format just like #!. There is also binfmt_misc to register other interpreters.