C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Reducing Text-Only Programs
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
     You can reduce the executable-file size by about 8K or 10K for a
     program that uses only the text-mode functions from GRAPHICS.LIB.
 
     To do so, link your program with TXTONLY.OBJ. If you explicitly
     name GRAPHICS.LIB in the compile or link command, place it after
     TXTONLY.OBJ on the command line. Use the /NOE option to avoid
     multiple symbol definitions. For example:
 
          CL TEST.C NOGRAPH /LINK [ GRAPHICS.LIB ] /NOE
 
     A program built with TXTONLY.OBJ cannot use graphics modes or
     graphics functions. It cannot try to change the palette. If the
     program tries to enter a graphics mode, _setvideomode will return
     an error.
                                    -♦-