flat assembler
Message board for the users of flat assembler.

Index > DOS > Dynamic Linker and Library for DOS16?

Author
Thread Post new topic Reply to topic
fonolite



Joined: 14 Dec 2005
Posts: 32
fonolite 25 Jun 2010, 02:50
My executable, compiled by Turbo C for dos16 has very large sizes.

So I'm looking for the way of some dynamic linkers or loaders of library.

I've read LoadLibrary() API for dos32 (Causeway extender) at Openwatcom C.


Any idea for dynamic linker or loader of library for dos16 like DLL for Windows?
Post 25 Jun 2010, 02:50
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1898
DOS386 27 Jun 2010, 11:17
> My executable, compiled by Turbo C for dos16 has very large sizes.

Related to FASM ??? What's in ??? Maybe some optimization would be needed. Idea

> So I'm looking for the way of some dynamic linkers or loaders of library.

There used to be "overlay technology" ... but I would NOT recommend it at all Sad

> I've read LoadLibrary() API for dos32 (Causeway extender) at Openwatcom C.

Maybe true, but it's DOS32, NOT DOS16.

> Any idea for dynamic linker or loader of library for dos16 like DLL for Windows?

For DOS32 you can use HX and LoadLibrary in Win32 style (maybe better than the OS/2 style supported by Causeway).

For DOS16, see above Sad
Post 27 Jun 2010, 11:17
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 28 Jun 2010, 06:47
TurboPascal has a smartlinker built in, so do other Pascals, so they can produce smaller binaries than C. TP even supports overlays, but I agree it's probably easier to just UPX the binary.

.DLLs? Untested but take a look at this:

Quote:

http://www.nyangau.org/

DLL - Andys Dynamic Link Library routines.
Is a code module which provides support for dynamic linking to librarys and routines whose names are determined at run time (rather than compile time), in a largely platform independant way.
Documentation.
Source supporting for DOS, OS/2, Windows, NetWare, AIX, Linux, SunOS, MacOSX and HP-UX.
Post 28 Jun 2010, 06:47
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.