4 ms·
Why can’t you add additional data about the data types of parameters in a separate ELF section? It would be only used by programs that look for it like a specia
by supriyo-biswas 3y ago
Why can’t you add additional data about the data types of parameters in a separate ELF section? It would be only used by programs that look for it like a specially designed shell.
The calling convention can be assumed to be the same as used by the OS/arch combination.
- sph 3y agoYou could, but you then have to recompile the world with this new information stored as a ELF header or something, and good luck if the library is not written in C (so it has its own conventions, ABI, memory model and binary format) I'm talking about the status quo today, not how you can improve in a perfect world where everybody adopts a better way of doing things. Implementing an half-baked Smalltalk layer on top of UNIX will not turn UNIX into a Smalltalk environment.