home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 3: The Continuation / 17-Bit_The_Continuation_Disc.iso / amigan / amigan 14 / resident / !!readme.first!! next >
Encoding:
Text File  |  1994-01-27  |  3.1 KB  |  64 lines

  1. I have included my utilities:
  2.  
  3.         DFree -   Disk Free space lister, giving BYTES not BLOCKS
  4.         FreeMem - Free Memory lister.
  5.         Prefs -   Utility to change preferences.
  6.         Sweep -   Utility to flush unused libraries/devices to recover mem.
  7.         WinSize - Window re-sizer.
  8.  
  9. All but Sweep appeared on Amigan disk #11, and most were slightly larger than
  10. these versions.  The ones included here are set to work as resident commands,
  11. and I have used them myself that way.  Read the file 'Resident.doc' to find
  12. how to use the Resident command.
  13.  
  14. I must take exception to something written in an early issue of the Amigan, a
  15. statement that there was no real use for the Resident command, and that it was
  16. just a waste of space [Comment from Dick Barnes: well, I didn't say that. I
  17. did say that Resident is dangerous and offers no advantages unless you have
  18. a large program resident in RAM which you don't want copied for execution. I
  19. stand by that statement. See below.]
  20.  
  21. This command has one MAJOR advantage over other formats (such as keeping the
  22. files in RAM:), which is shown by the following example:
  23.  
  24.         Suppose you had stored FreeMem in RAM:c, and you had used the Path
  25.         command to set a path to RAM:c to look for command files.
  26.         Now, while writing the great American novel, you want to see if
  27.         you have enough memory to start your print spooler in the background.
  28.         Ok, you activate PopCLI, and type FreeMem.
  29.  
  30.         'Unknown command FreeMem'
  31.  
  32.         is all you get.  Why?  Because the CLI window brought up by PopCLI
  33.         doesn't know about the path set up by your previous CLI command, so
  34.         to run FreeMem, you will have to specify the full pathname, or execute
  35.         the path command AGAIN.
  36.  
  37.         [Comment from Dick Barnes: Jim, if you put RAM:C in PATH in your
  38.         s-sequence before you load POPCLI, every incarnation of POPCLI
  39.         inherits the PATH showing RAM:c, and you'll get DFREE, MEMFREE, and
  40.         your other ram:c commands always from POPCLI--even if you subse-
  41.         quently change PATH. You don't have to swat this gnat with the
  42.         RESIDENT sledgehammer.]
  43.  
  44. This can all be avoided by having FreeMem resident.  Any new CLI brought up
  45. after the initial Resident-CLI knows about all the resident commands, and
  46. will search them before the current directory or c: or the rest of any path
  47. you may have created.
  48.  
  49. As for the increased size...most of this extra size is only on disk!  The
  50. resident CLI is only a little bigger than the default CLI, and if you use
  51. the Resident command correctly, you REPLACE the default CLI with the resident
  52. capable version, NOT have both at the same time!
  53.  
  54. The one caveat is that to make a program resident, it must have been designed
  55. to be resident (all variables allocated dynamically, etc.) or you could have
  56. problems trying to invoke it twice, as explained in the 'Resident.doc' file,
  57. specifically the reference to making TxEd resident.
  58.  
  59. All I can say is "Try it, you'll like it." (Maybe.  If not, nothing wasted but
  60. a very small amount of time.  After all, you can always erase these files and
  61. pretend they never existed!)
  62.  
  63.                                 -jec
  64.