[comp.lang.c] turboc and overlays

bs1@wn2.sci.kun.nl (John Graat) (01/23/91)

Hi there,

I'm wondering if it is possible to write overlays in TurboC. I've tried it
a few times, but it didn't work. (I mean: I didn't get it to work)
The reference manual says Tlink wasn't designed to be used with overlays, so
I decided to use the microsoft linker supplied with dos. The problem is, the
library routines internally call procedures declared in the startup code, 
which I don't want to be included. (If I would do that, it wouldn't be an
overlay any more).
Does anyone know if there is another way of doing it, or is it just not 
possible?

By the way: the overlay will be loaded into EMS-memory, so the stack must be
part of conventional memory.

Thanks in advance.

					John Graat
					University of Nijmegen
					The Netherlands
					email: bs1@wn2.sci.kun.nl

gordon@osiris.cso.uiuc.edu (John Gordon) (01/24/91)

	I'm not sure if this will help you, but Turbo C++ does overlays.

blair.wilson@canrem.uucp (blair wilson) (01/29/91)

JG>Hi there,

JG>I'm wondering if it is possible to write overlays in TurboC. I've tried it
JG>a few times, but it didn't work. (I mean: I didn't get it to work)
JG>The reference manual says Tlink wasn't designed to be used with overlays, so
JG>I decided to use the microsoft linker supplied with dos. The problem is, the
JG>library routines internally call procedures declared in the startup code,
JG>which I don't want to be included. (If I would do that, it wouldn't be an
JG>overlay any more).
JG>Does anyone know if there is another way of doing it, or is it just not
JG>possible?

JG>By the way: the overlay will be loaded into EMS-memory, so the stack must be
JG>part of conventional memory.

JG>Thanks in advance.

JG>                       John Graat
JG>                       University of Nijmegen
JG>                       The Netherlands
JG>                       email: bs1@wn2.sci.kun.nl

The newest version of Turbo C (3.0), has a built in overlay manager
which is supposed to relieve you of the task of building an overlay
structure.  You just specify that you want overlay support, and it
builds it for you.  RTLink (PocketSoft, Houston Texas, (713) 460-2651),
also sells a linker which supports Turbo C obj's.  (Turbo C version 3 is
actually Turbo C++ 3.0, but it includes a C and a C++ compiler)

email - blair.wilson@canremote.uucp
---
 ~ DeLuxe}ab #280sa ~ I tried the rest but bought the best!!!!
--
Canada Remote Systems.  Toronto, Ontario
NorthAmeriNet Host