www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/10/22/18:25:16

From: sandmann AT clio DOT rice DOT edu (Charles W. Sandmann)
Subject: Re: link with real mode obj's
To: patrinos AT iesl DOT forth DOT gr (hello)
Date: Fri, 22 Oct 1993 16:30:51 -0600 (CDT)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP Mailing List)

> I had been using in the past an older version of djgpp but
> I had a serious problem. I couldnt link with real mode obj
> or lib files. I am mostly talking about commecrial libraries
> as those provided by National for its GPIB boards or graphics
> packages which come with "standard" real mode DOS utilities
> (libs, objs, dlls, ...whatever).
> I wonder if the latest version of djgpp has this capability
> or what i must do to achieve this purpose

No, this is pretty much an impossibility due to different object module
formats, and one being a flat 32 bit model and the other being a 16 bit
segmented model.

There is a workaround - you must add the subroutines you want to call to
GO32 and call them through execption_handler in exphdlr.c.  This is how
the extender calls the DOS routines.  Choose an unused interrupt and 
code your own "turbo_assist" type funtion to call these routines.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019