Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Mach SIx v1.1c - Reference Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  How do I use the Mach SIx with an existing application?:

    There are two ways to get started with Mach SIx.  You have
    both "link only" and "recompile" options.

    Using the "link only" method you simply re-link your application
    with the MACHSIX.OBJ, MACHSIX.LIB and the appropriate OBJ and LIB files
    from either the SIx Driver (MACH6SIX.OBJ and DBFSIX.LIB) or HiPer-SIx
    (MACH6NSX.OBJ and DBFNSX.LIB).  Then the next time you run your applica-
    tion all SET FILTER conditions will be optimized where indexes are
    available.

      With the SIx Driver:

        RTLINK FI myapp, dbfsix, mach6six, machsix  LIB dbfsix, machsix

      With HiPer-SIx:

        RTLINK FI myapp, dbfnsx, mach6nsx, machsix  LIB dbfnsx, machsix

    The following steps will get you up and running with the
    "recompile" method:

    1. Include the Mach SIx header file shown below everywhere optimization
       is desired.

           #include "DBFSIX.CH"          // SIx Driver header file
           #include "MACHSIX.CH"

          or

           #include "DBFNSX.CH"          // HiPer-SIx header file
           #include "MACHSIX.CH"


    2. Re-compile your application.

    3. Add MACHSIX.LIB as a library to your link command or link script.

    That's it.  Mach SIx will automatically optimize any command where one
    or more index keys are in the FOR condition.



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