MSDOS/DOS OBJ file format compatibility

Michael B. Brutman mbbrutman-cctalk at brutman.com
Thu Jan 1 20:46:48 CST 2009


I've been working on my TCP/IP stack for three years now.  It's in 
Borland Turbo C++ 3.0, which is capable of taking OBJs and making a LIB 
(library) from them.  This is how I was planning to distribute my code 
for other people to use.

A question came up today that I can't readily answer.  If somebody is 
programming using Microsoft languages, will they be able to link against 
OBJs or LIBs I provide them?  I have no idea if the OBJ or LIB format is 
standard and portable across the two vendor toolsets.

If it is portable then I know I have to watch out for things like 
parameter ordering.  But how does one express the concept of NEAR and 
FAR pointers in the different languages?  Is there a guide or a cross 
reference somewhere?  Maybe something buried in compiler docs somewhere?

(The first target user is a *gasp* QuickBASIC user.  I'd rather he 
program in C, but that's a different discussion.)


Thanks,
Mike



More information about the cctech mailing list