Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>how to create overlays</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
How To Create Overlays

   Overlays are created with PLINK86-Plus commands at link time.
   Generally, it is best to use a response (.LNK) file.  For example:

   FILE DB_MAIN
   LIBRARY EXTEND
   DEBUG
   OVERLAY CODE
   BEGINAREA
        SECTION FILE ADD, EDT
        SECTION FILE RPT
        SECTION FILE REINDX, B_C
   ENDAREA

   Note: PLINK86-Plus automatically searches for CLIPPER.LIB and
   OVERLAY.LIB.

   When you link your programs, PLINK86-Plus segregates the information
   contained in the object files into classes.  The data class contains
   "constant" information, such as string constants and memory variable
   names.  The code class contains the actual program instructions.
   Clipper usually places the constants table in the main load file.  To
   minimize the use of memory, the OVERLAY CODE statement is used to
   place the data class information into the overlay rather than into
   the main file.

   BEGINAREA defines the start of an overlay area.  The end of the area
   is indicated by the ENDAREA command.  SECTIONs created between the
   BEGINAREA and ENDAREA commands automatically become overlays that
   share the same memory space.


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson