6 ms·
> There are no dynamic link libraries (DLLs) or shared objects. Instead, there is only one type of function libraries that can be used for both static and dynam
by amluto 8y ago
> There are no dynamic link libraries (DLLs) or shared objects. Instead, there is only one type of function libraries that can be used for both static and dynamic linking. Only the part of the library that is actually used is loaded and linked. The library code is kept contiguous with the main program code in almost all cases. An executable file can be re-linked to update a function library or to adapt the program to a particular hardware configuration, operating system, or user interface framework.
So compiled code is forward compatible with new CPUs with longer vector registers, but it's not forward compatible with new libraries?
I find it a bit sad that people put so much effort into designing new ISAs that have nifty features, but then they make them so different from current ISAs that they basically can't run currently existing software.
- frabert 8y agoAlso I don't see how something like libraries linking has anything to do with an ISA, which is mostly an OS implementation detail, AFAIU
- lgg 8y agoLinking is always a largely a function of the ISA, because it is about taking partially finished chunks of code and glueing them together. In the case of dynamic libraries part of that has to do with the OS, more of it has to do with the instructions you have. Do you have segment registers, PC relative jumps or loads? How far do the instruction encoding allow, do you need things like branch islands, or TOCs, etc.
- saagarjha 8y agoSure, but why should an ISA dictate whether libraries are static or dynamic, unless they are planning to intentionally sabotage relative jumps or something similar?
- lgg 8y agoI completely agree. I was just responding that linking is intimately related to the ISA, which is relevant since the FowardCom info states that it does not support dynamic linking and instead all objects are instead relinkable (in the same way static linkers work). If you design an ISA with that mindset it is quite easy to omit instructions necessary to do efficient dynamic linking.
- tlb 8y agoThe x86 and x64 ISAs allow both, but impose a significant performance penalty on dynamic linking. I can see the appeal of an ISA which allows dynamic linking at no extra cost, so you’d never need to decide.
- amluto 8y agoOn a vaguely educated guess, it’s related to the lack of an MMU.
- gpderetta 8y agoThis is Agner Fog pet architecture. It has zero chances of ever being implemented. At best is to be considered a wishlist from a well known assembly programmer.