home *** CD-ROM | disk | FTP | other *** search
/ POINT Software Programming / PPROG1.ISO / asm / dos6mm / optimize.com < prev    next >
Encoding:
Text File  |  1993-03-31  |  14.6 KB  |  237 lines

  1. Θ$-Analyzes your setup and recommends configuration changes that will
  2. maximize the largest executable program size.
  3.  
  4. OPTIMIZE [[d:][path]filename] [/M] [/P] [/n]
  5.  
  6.   filename  File to write output to.
  7.   /M        Use monochrome video attributes.
  8.   /P        Output the results to the printer.
  9.   /n        LPT port to direct printer output to.
  10. $Requires DOS 5 or DOS 6
  11. $Syntax: OPTIMIZE [[d:][path]filename] [/M] [/P] [/n]
  12. $Printer not ready
  13. $File could not be created
  14. $Error writing file to disk
  15. $                                                                                                                                                                                                COMMANDEMMXXXX0386MAX$$
  16. ╕                                   OPTIMIZE                                      Browse:   PgUp PgDn Home End         Print: Ctrl-P         Exit: Esc     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  17. ░                                                                              ░
  18. ░                 OPTIMIZE 1.1 Copyright (c) 1993 Jeff Prosise                 ░
  19. ░           From: PC Magazine DOS 6 Memory Management with Utilities           ░
  20. ░                                                                              ░
  21. ░              Lines marked with asterisks (*) indicate areas of               ░
  22. ░                 memory in which further savings are possible                 ░
  23. ░                                                                              ░
  24. ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  25.  
  26. @STACKS  
  27.  
  28. Tests indicate that your PC was started with a setting of STACKS=%,%.
  29. You can add % bytes to the largest executable program size by switching to
  30. STACKS=0,0. If STACKS=0,0 causes DOS to crash due to internal stack overflows,
  31. restore the original STACKS setting and reboot. See Chapter 6 for details.
  32.  
  33. Tests indicate that your PC was started with a setting of STACKS=0,0,
  34. eliminating the space that DOS sets aside internally to provide stack space
  35. for hardware interrupts. Additional stack space is not necessary on most PCs,
  36. so this a convenient way to economize on RAM usage. If STACKS=0,0 causes DOS
  37. to crash due to internal stack overflows, increase the STACKS setting and
  38. reboot.
  39.  
  40. @LASTDRIVE  
  41.  
  42. DOS has reserved room for % logical drives, but only % logical drives are
  43. defined. You can save % bytes of RAM by adding the statement LASTDRIVE=x
  44. to your CONFIG.SYS file. See Chapter 6 for details.
  45.  
  46. Currently, the highest drive letter defined in your system is x. Before you
  47. switch to LASTDRIVE=x, you will also need to modify any commands that create
  48. logical drives with drive letters higher than x (for example, SUBST commands
  49. and commands that create network drives) so that none of the drive letters
  50. exceeds the maximum you specify with LASTDRIVE.
  51.  
  52. DOS has reserved room for % logical drives, and you have exactly % logical
  53. drives defined. This eliminates the wasted space that results when there are
  54. more slots reserved for logical drives than there are logical drives to fill
  55. them.
  56.  
  57. @FCBS  
  58.  
  59. Your PC was started with a setting of FCBS=%, permitting up to % files
  60. opened with file control blocks to be open concurrently. You can save %
  61. bytes of RAM by switching to a setting of FCBS=1. Note that higher FCBS
  62. settings may be required to accommodate programs that use file control
  63. blocks to perform file operations. See Chapter 6 for details.
  64.  
  65. Your PC was started with a setting of FCBS=1. This reduces to a minimum
  66. the space that DOS reserves for file control blocks in conventional memory,
  67. because the lowest FCBS setting DOS will accept is FCBS=1. Note that higher
  68. FCBS settings may be required to accommodate programs that use file control
  69. blocks to perform file operations.
  70.  
  71. @FILES  
  72.  
  73. The system file table currently contains room for 8 entries, permitting up
  74. to 8 files opened with file handles to be open concurrently. Eight is the
  75. lowest FILES setting DOS will accept, so there's nothing more to be saved
  76. here.
  77.  
  78. The system file table currently contains room for % entries, permitting
  79. up to % files opened with file handles to be open concurrently. DOS will
  80. accept FILES settings as low as 8. Use the FILEMON utility supplied with
  81. this book to determine if you can save memory by decreasing the FILES
  82. setting. See Chapter 6 for details.
  83.  
  84. Tests indicate that your PC is configured to use upper memory, but that
  85. all of the system file table is located in conventional memory. You can
  86. use the UMBFILES utility supplied with this book to move part of the system
  87. file table to upper memory. Doing so could increase the largest executable
  88. program size by up to % bytes. See Chapter 3 for details.
  89.  
  90. Tests indicate that your PC is a 386 or higher but that there is no upper
  91. memory available to DOS. When there is upper memory available, the UMBFILES
  92. utility supplied with this book can be used to move part of the system file
  93. table to upper memory. See Chapter 3 for details.
  94.  
  95. The system file table currently contains room for % entries, permitting
  96. up to % files opened with files handles to be open concurrently. Of these
  97. entries, % are located in conventional memory and % are located in upper
  98. memory. This minimizes the impact that the FILES setting has on the largest
  99. executable program size and is an efficient way to put upper memory to work
  100. under DOS 5 and DOS 6. Note that Windows will not start in 386 enhanced mode
  101. on some PCs unless FILES is set to at least 10 or 12.
  102.  
  103. The system file table currently contains room for % entries, permitting
  104. up to % files opened with files handles to be open concurrently. Of these
  105. entries, % are located in conventional memory and % are located in upper
  106. memory. You can add % bytes to the largest executable program size by
  107. decreasing the FILES setting in CONFIG.SYS to 8 and increasing the size
  108. of the system file table in upper memory by a commensurate amount. Note
  109. that Windows will not start in 386 enhanced mode on some PCs unless FILES
  110. is set to at least 10 or 12.
  111.  
  112. @DOS HIGH/LOW  
  113.  
  114. Tests indicate that your PC is a 286 or higher but that DOS is loaded
  115. in conventional memory. You can add up to 60K to the largest executable
  116. program size by transferring DOS to the HMA. See Chapter 2 for details.
  117.  
  118. Further tests indicate that there is an XMS driver installed and that the
  119. HMA is already allocated. If you choose to load DOS high, you should first
  120. disable the program that has allocated the HMA or configure it so that it
  121. does not use the HMA.
  122.  
  123. Tests indicate that your PC is a 286 or higher and that DOS is currently
  124. loaded in the HMA. This adds up to 60K to the largest executable program
  125. size by minimizing DOS's footprint in conventional memory.
  126.  
  127. Although DOS is loaded in the HMA, the disk buffers controlled by the
  128. BUFFERS command are not. You can add more than 20K to the largest executable
  129. program size by lowering the BUFFERS setting in your CONFIG.SYS file to 42 or
  130. less in DOS 6 or 44 or less in DOS 5. See Chapter 2 for details.
  131.  
  132. Tests indicate that your PC contains an 8086 or 8088 microprocessor.
  133. As such, you don't have the option of loading DOS in the HMA, which
  134. would add up to 60K to the largest executable program size.
  135.  
  136. @UPPER MEMORY  
  137.  
  138. Tests also indicate that QEMM-386 or QRAM is providing upper memory support.
  139. At present, there is %K of free UMB RAM in the upper memory area. The size
  140. of the largest free UMB is %K. If there are TSRs or device drivers remaining
  141. in conventional memory, you may be able to free up additional RAM by trans-
  142. ferring some of them to upper memory. See Chapter 7 for details.
  143.  
  144. Tests also indicate that 386MAX is providing upper memory support.
  145. At present, there is %K of free UMB RAM in the upper memory area. The size
  146. of the largest free UMB is %K. If there are TSRs or device drivers remaining
  147. in conventional memory, you may be able to free up additional RAM by trans-
  148. ferring some of them to upper memory. See Chapter 7 for details.
  149.  
  150. Tests also indicate that EMM386.EXE or another memory manager is providing
  151. upper memory support. At present, there is %K of free UMB RAM in the upper
  152. memory area. The size of the largest free UMB is %K. If there are TSRs or
  153. device drivers remaining in conventional memory, you may be able to free up
  154. additional RAM by transferring some of them to upper memory. See Chapter 3
  155. for details.
  156.  
  157. Further analysis indicates that there is %K of unused space in the upper
  158. memory area that could be converted to UMB RAM. Use the UMASCAN utility
  159. provided with this book to locate this space. See Chapter 3 for details.
  160.  
  161. Tests also indicate that your PC is a 386 or higher, but that there is
  162. no UMB RAM available. By loading EMM386.EXE and adding the statement DOS=UMB
  163. to your CONFIG.SYS file, you can create upper memory blocks to load TSRs and
  164. device drivers into. Shifting these programs to upper memory increases the
  165. the space left for application programs in conventional memory. See Chapter
  166. 3 for details.
  167.  
  168. Note that OPTIMIZE may be unable to detect the presence of upper memory
  169. blocks created by some third-party memory managers if your CONFIG.SYS file
  170. does not contain a DOS=UMB statement. If you use a memory manager other than
  171. EMM386.EXE, QEMM-386, QRAM, 386MAX, or BlueMAX, use the tools that came with
  172. it to determine to what extent upper memory is being utilized.
  173.  
  174. Since your PC is not a 386 or higher, you can't use EMM386.EXE. If your
  175. PC contains EMS 4.0 expanded memory hardware or was built using a chip set
  176. that supports shadow RAM, you may be able to create upper memory to hold TSRs
  177. and device drivers using third-party memory managers. See Chapter 7 for
  178. details.
  179.  
  180. @ENVIRONMENT  
  181.  
  182. You currently have % bytes of RAM set aside to hold environment strings.
  183. At present, only % bytes are used. You can add % bytes to the largest
  184. executable program size by loading COMMAND.COM with a /E:% switch. If you
  185. receive "Out of environment space" messages from DOS after decreasing the
  186. environment size, increase the number following the /E switch. See Chapter
  187. 6 for details.
  188.  
  189. You currently have % bytes of RAM set aside to hold environment strings.
  190. At present, % bytes are used. Since environment space is allocated by DOS
  191. in multiples of 16 bytes, there are no further savings to be had here. If you
  192. receive "Out of environment space" messages from DOS, increase the size of the
  193. environment by loading COMMAND.COM with a /E switch specifying the desired
  194. environment size.
  195.  
  196. You currently have 160 bytes of RAM set aside to hold environment strings.
  197. You can't save any more memory here, because the smallest environment size
  198. that COMMAND.COM supports is 160 bytes. If you receive "Out of environment
  199. space" messages from DOS, increase the environment size by loading
  200. COMMAND.COM with a /E switch specifying the desired environment size.
  201.  
  202. @LARGEST EXECUTABLE PROGRAM SIZE  
  203.  
  204. Currently, the largest executable program size is %% bytes (this figure
  205. may vary slightly from the one reported by the MEM command). You might be
  206. able to increase this number by making a few minor configuration changes.
  207. Rerun OPTIMIZE after making the recommended changes to gauge the effect on
  208. the largest executable program size, and to determine if further savings
  209. are possible.
  210. % bytes. (this figure
  211. may vary slightly from the one reported by the MEM command).
  212. Congratulations! You've minimized the space that DOS consumes in the
  213. lower 640K and maximized the memory available to your programs.
  214. ⁿ╛üΦ⌡s ┤    ║═!╕L═!┤0═!║`<t<t    ┤    ═!╕L═!ΦτrX¼</tï╓JΦ≡╞┤<3╔═!║┼r┘úAδ:¼<1r╧<3w,1ó■δ═$▀<Pu╞δ└║z<Mu░╞ p╞!╞"╞#δú┤R═!ëî&ïG■@Ä└&Ç>Mt2&Ç>St&δµ&ïC▒╙πë    @Ä└&ïë&ïëΦfêó─&èG!ó :┴v*┴│X÷πúá@ó ó¢ ó áAóy ─&ïG■@Ä└&Ç>Mt1&Ç>Xt&δµ&ï▒╙πâδPë@Ä└3█Φ"╩ëë─&─_Φëë ╩ëëí-│;÷πú"Φê$╕3═!÷╞u5╕C═/<Çud╕C═/ëî╞>┤║    └tE╞>┤ δ8╞%─&ïG■@Ä└&Ç>Mt &Ç>Bt&δµ&ï▒╙πüδë╕X═!ó)╕X╗═!r ╞&Φtë+ë-Φ÷ë/╕Xï)═!╕╥╗IH╣AR║0M═/ü√KOu"╞'Ç>&tï┘Φåë+ë-Φ╣ë/δy╕=║═!roú?╕Dï?═!≈┬ÇtU╞r;╕Dï?╣`║r;═!r?ü>s;38u7ü>u;6Mu/ü>w;AXu'ï¡;â√ t╞(Ç>&tΦë+ë-ΦFë/┤>ï?═!─&ï_■Ä├C&;u╛┐╣≤ªt&Ç>ZtO&δ┌╞1Ä├&ï,KÄ├&í▒╙αú2CÄ├3 ╣&â=tGAδ÷ë4â┴âß≡ü∙ás╣áë8+┴ú6íî█+├H3╥╣╤α╤╥Γ·╗Φ≈≤ú:ë<î╚Ä└┐r;╛╬ΦL╛⌐ΦFï∩â>    t&╞F²*╛╡╗Φ/δ╛ΓΦ'╛c
  215. Φ!ï∩â>t!&╞F²*╛r
  216. ╗ Φ
  217. á■└:v╛; Φ∙δ    ╛₧ ╗ Φε╛ïΦΦï∩â>t&╞F²*╛ò╗Φ╤δ╛≤Φ╔╛DΦ├ï∩â>w╛OΦ┤δVâ> u/&╞F²*╛6╗Φ¥Ç>&t ╛|╗"Φìδ/Ç>$r(╛▀Φ~δ â>u ╛⌡╗Φlδ&╞F²*╛φ╗Φ\╛ΦVï∩Ç>$u╛█ΦGδ<Ç>%u&╞F²*╛Φ3Ç>>t#╛±Φ&δ╛ΦΦ╗â>t &╞F²*╛╖Φ    ╛óΦï∩Ç>'u╛┤╗+Φ±â>+t&╞F²*δÇ>(u╛(δαÇ>&u╛Æ δ╘â>/t*&╞F²*╛"╗/Φ╢δÇ>$s╛Ω%Φºδ ╛⌠"&╞F²*ΦÜÇ>1t8╛'Φìï∩ü>2áu╛=*Φ}δ â>6s ╛«(╗2Φkδ&╞F²*╛/'╗2Φ[╛⌐+ΦUï∩&╞╛r;¼
  218. └t <*u≈&╞F²*3φ╛╬+╗:Φ3â><ds ░0¬â><
  219. s¬╛,╗< φt╛N-Φ&╞╛r;â>AtΦ1£┤>ïA═!¥s!║ßΘH·Ç>uΦÖδï■ΦTs║▒Θ-·╕L═!V¼<t<?u≈Ç|■/u±â─âε∙├^°├¼<    t√< t≈<,t≤N<t°├∙├¼< t <,t<u≤N∙├N°├┤═!P3█3╔┤è╤═!┤═!:┴u■├è°Aâ∙uΦZ┤═!è╦è╟├3╔3╥î└=áv&Wδ&O&─â√ uτ├╕X═!P╕X╗@═!3╔3╥3 ┤H╗  ═! █t;▀vï√╙┤H═!PAδσπ┤I═!Γ≈╕X[═!ï▀â├ â┬ ▒╙Ω▒╙δ├3╥3╔Ä├&C&â>u&&9v&ï&Ç>Mt╫ï┘â├ â┬ ▒╙Ω▒╙δ├Φ╛C╣`3╥¡=  uâ┬Γ⌡├î╚Ä└╕═<u┐C░V╣@≤¬Θ▒┤│═Ç√t_╕@Ä└&Ç>Iu*î╚Ä└┐c░V╣Ç√u╣≤¬┐C░V╣ Ç√u╣≤¬δ(î╚Ä└┐s░V╣Ç√u╣≤¬┐C░V╣ Ç√u╣≤¬║╘Φ╚r
  220. ┐s░V╣≤¬║┤Φ╢r-┐c░V╣≤¬║║∞èαÇΣÇ╣Çδ∞$Ç:αuΓ⌡δ
  221. ┐c░V╣ ≤¬╕g5═!┐
  222. ╛ ╣≤ªu0î╚Ä└┤@═gÇⁿu#┤A═gÇⁿuü√árüδá▒╙δ┐C√░E╣ ≤¬╛@Ç╝C uNï╞▒╙αáÄ└&ü>U¬u:&áÿ▒    ╙αï╚2└3 &GΓ·
  223. └u!&á╨Φ╨Φè╚2φQî╚Ä└ï■ü╟C░R≤¬Y±Nü■¿sFδóΦÑ3╔î╩Qï±Ç╝C tΘà▒╙µü╞áï▐Ä█3÷┐r;Ä┬╣·≤ÑÄ┌Ä├3 ╛╣≤ÑÄ█3÷┐rCÄ┬╣≤ÑÄ┌Ä├3 ╛r;╣≤Ñ√╛┐rCÄ┬╣≤ºu    ^V╞äC+δ)╛r;┐rC╣≤ºu┐r;è╣≤«t^V╞äCRδ^V╞äCUYAü∙└tΘc Φ├╕─═rΣpδ$µpδΣqδΣáδ$µá├╕─═rΣpδ ǵpδΣqδΣáδ ǵá├░εBδ∞èα÷╨è╪δεδ∞å─δε:πu°├∙├2╥TX;αu"■┬£Xï╪üπ@5@P¥£Xï╚üß@5@P¥;┘t■┬├¼
  224. └t<%t¬δ⌠ïSΦ[â├δΦ├╗
  225. 3╔A3╥≈≤R └u÷X0¬Γ·├
  226. 3ɋ֬<@t <
  227. t
  228. └t+Aδ≡┤@ïA═!r)δα┤@ïA═!r┤@ïA╣║ 8═!rδ─┤@ïA═!r°├┤═÷─(t∙├¼
  229. └t<@t≈<
  230. u P╕═÷─(uµX┤═÷─(u▄δ▄╕ ═°├ë6á8ë6ó8Φk╣  ï■î╪Ä└2└≥«Oï≈Φàë6ñ8è>"Φ╚┤2 ═ë,┤╡ ═╛0è&!3╥Φ╜╛}è& è6+2╥Φ¡á!è6+▓╣Φ╦á!è6+▓3╣Φ╝á!è6+▓H╣Φ¡á"è6+▓'╣Φ₧á"è6+▓=╣ΦÅï6á8Φ»┤═
  231. └t<uΘ¿<uφ╛r;ï■Φ δßÇⁿHuíá8;ó8t╙ï6á8Φ╡ë6á8δ├ÇⁿPuÇ>/u║ï6á8Φ⌐ë6á8δ¬ÇⁿIuíá8;ó8tƒï6á8Φöë6á8δÅÇⁿQuÇ>/uåï6á8ΦÅë6á8Θu ÇⁿGuï6ó8;6á8të6á8Θ_ ÇⁿOuï6ñ8;6á8të6á8ΘI ΘI ╖ΦÄ┤è>.3╥═┤ï,═├╕@Ä└&áI<u╕═δ<u╞ p╞!╞"╞#╟$░δ<r<v╕═&íJó*■*╤αú(&íNú&&ábó.╕═<t ┤│═Ç√t&áäó+├╕╣è6+è*═├PΦ<ï°Ä$Xè*■┴2φ¼
  232. └t<
  233. t½Iδ≤π
  234. ü∙w░ ≤½├PQΦï°GÄ$YX¬GΓⁿ├è╩è╞ÿ≈&(è╤╤Γ┬&├è+■╔2φ║Ç<t$QRè&"Ç<@uè&#FΦë Z■╞YΓΓ╞/Ç<t├╞/├âεÇ<
  235. tNδ°F├¼<
  236. u√├è+■╔2φΦΓ ;6ó8tΓ⌡├è+■╔2φΦ█ ;6ñ8tΓ⌡├
  237.