Mail Archives: djgpp/1997/02/16/02:44:20
On 13 Feb 1997, Hasdi Rodzmann Hashim wrote:
> I think we are forgetting the real advantage of shared libraries. Shared
> libraries can hide the implementation details of the operating system.
> That way, if DOS maintainers decide screen printing should be done
> directly instead of using INT 21h-09h, my application doesn't have to
> change, only the libraries. This level of abstraction makes is possible
> for an application to be more portable from one DOS implementation to
> another; Heck, this would work even for different hardware implementation
> (one day it will be i/o port 03E8h, tommorow 040Eh) and application NEVER
> needs to change.
This is, IMHO, too simplistic. In my experience, the OS-dependent stuff
is deeply intertwined with the startup code, and cannot be easily
separated to be put in the shared library. For more details, look at the
DJGPP startup code and the stub (e.g., some of the brk/sbrk functionality
is included there).
- Raw text -