community.borland.com

Article #15100: DATA SEGMENT USAGE OF SYSTEM UNITS

 Technical Notes Database

TN100D.txt   DATA SEGMENT USAGE OF SYSTEM UNITS
Category   :Pascal
Platform    :All
Product    :Turbo Pascal  5.0 5.5

Description:
Q. How much of the 64K in the data segment is actually
   available to my program?
A. The amount of data segment used by the run-time library
   depends on which standard units you use in your program. Here
   is the data segment usage (in bytes) for each unit:

             UNIT         Data Size
             ----         ---------
             System          664
             Overlay          10
             Crt              20
             Dos               6
             Printer         256
             Graph          1070
             Turbo3          256
             Graph3            0
                          =========
                            2282

   The total size of the data segment is 65,520 bytes. If you
   used only the System unit, the amount of data segment space
   left over would be

             65520 - 664 = 64856 bytes


Reference:


7/16/98 4:35:29 PM
 

Last Modified: 01-SEP-99