On Tue, 29 Dec 2020, DosWorld via Freedos-devel wrote:

Was there ever any "official" format for a shared runtime library under MS-DOS?
...
Any constructive feedback would be appreciated! :D

Here is no any standard. I can purpose few way:
Experimental library format in msa2 - 
https://github.com/DosWorld/msa2/tree/master/original/examples/OVL-TP7
Way, described into Turbo Pascal 3. Here is example, how to use GRAPH.BIN 
library (from TP3) into other languages. Imho, here is no problem link it 
static or dynamic.
https://github.com/DosWorld/pl2/blob/main/EXAMPLES/TP3GDEMO.PL2
https://github.com/DosWorld/pl2/blob/main/LIB/TP3GRAPH.PL2

Also, we have BGI - this is about graphics, but it is shared library.
And next way - "everything is a file" (this is unix way) - write library as 
device driver (.sys)

One more - load unix a.out format (it is easy and well documented).

And last way, (more hard) - dynamic loading .obj file. .obj contains all 
required info.

I've thought of the possibility of using ELF. Never got off the ground though.

I've had ideas for what I'd do if I were writing my own OS or my own DOS clone... but they'd probably be too weird for this list.

-uso.
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to