Subj : Re: Platform: DOS (Overlay) To : borland.public.cpp.borlandcpp From : waking Date : Fri Jul 16 2004 10:38 pm On Sat, 17 Jul 2004 10:39:43 -0500, "Jeff Baker" wrote: >I think I remember reading in this forum that the BC 5.02 compiler is >incapable of creating a DOS overlay correctly. Yes. >Does anybody know what's the difference between an overlay and a >Standard platform? In a nutshell, in an overlaid program various parts of the code share the same memory area when loaded. Thus only one such overlay may be loaded and executing at any given moment. The overlay loader attends to the task of loading/unloading/swapping the overlays. Because of this sharing of memory, overlaid programs can usually contain more code than a standard program. >How do we fix our BC 5.02 to correctly compile an Overlay? There are two problems: (1) The linker (tlink16) in 5.02 (and 5.01 I believe) is broken vis a vis overlays. Solution is to use an earlier linker from 5.00, 4.52, etc. (2) The IDE doesn't put the proper overlay options in make files. These can be added to the makefile manually. -- Wayne A. King (waking@idirect.com, Wayne_A_King@compuserve.com) .