Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Blinker 5.10 Online Reference - <b> symantec c++</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Symantec C++
------------------------------------------------------------------------------
 Blinker supports version 4.0 and later of Symantec C++ for DOS real mode and
 Windows programs, and supports versions 6.1 and later for protected mode
 programs. The following sample programs written in Symantec C++ will be used
 throughout this section to illustrate the basics of linking Symantec C++
 programs with Blinker.

 Overlaid programs must be compiled to use far calls, i.e. medium, large or
 huge memory model. Extended and dual mode programs must be compiled to use
 large or huge memory model.

 Note: The stack size of a Symantec C++ program must be set in the variable
 _stack from within the program code, not by the STACK link command. (e.g.
 extern "C" unsigned _stack = 8192;). Please refer to the Symantec
 documentation for further details.

 TEST.C
 void limerick (void);
 void main (void)
 {
    limerick ();
 }
 LIMERICK.C
 <include <stdio.h>
 void limerick (void)
 {
    printf ("There was a young fellow from Symantec\n");
 }

 The two modules are compiled as large model code as follows :

 SC -c -ml test.c
 SC -c -ml limerick.c

 DOS extended / non-overlaid program

 # TEST.LNK (This is a comment)
 # Comment out the next line for DOS real mode program
 BLINKER EXECUTABLE EXTENDED   # Create DOS extended program
 FILE test
 FILE limerick
 SEARCH BLXSCPnn               # Blinker dual mode library
 MIXCASE                       # Make link case
 sensitive

 This causes Blinker to link the two object modules specified in the FILE
 commands (test.obj and limerick.obj) to create a DOS extended program with
 the name TEST.EXE, which is the name of the first .OBJ file in a FILE
 command.

 Dual mode / overlaid program

 # TESTDUAL.LNK
 # Comment out the next line for dynamic overlays only
 BLINKER EXECUTABLE DUAL       # Create dual mode program
 BLINKER OVERLAY OPSIZE 50     # 50kb overlay area
 BLINKER OVERLAY PAGEFRAME ON  # Run overlays in pageframe
 BLINKER MESSAGE WINK          # Only wink one eye
 FILE test                     # This file is not overlaid
 BEGINAREA                     # Start of overlays
    FILE limerick              # This file is overlaid
 ENDAREA                       # End of overlays
 SEARCH BLXSCPnn               # Blinker dual mode library
 OUTPUT t                      # Output .EXE name
 MAP A,S                       # Create MAP file
 MIXCASE                       # Make link case sensitive

 16 bit Windows program

 #TESTWIN.LNK
 FILE test
 FILE limerick
 LIB swl, libw ...    # Windows libraries
                      # Version < 4.0 use zwl not swl
 NODEFLIB             # No default libraries
 MIXCASE              # Make link case sensitive
 DEFFILE TEST         # Use TEST.DEF
 #TEST.DEF
 NAME         TEST
 DESCRIPTION  'A small Windows program'
 EXETYPE      WINDOWS 3.1
 HEAPSIZE     1024
 STACKSIZE    8192

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