home *** CD-ROM | disk | FTP | other *** search
/ World of A1200 / World_Of_A1200.iso / programs / system / copymemquicker / copymemquicker.doc < prev    next >
Text File  |  1995-02-27  |  3KB  |  61 lines

  1.                    CopyMemQuicker 2.2 (11 Feb 1992)
  2.                   Copyright © 1991, 1992 Arthur Hagen
  3.                             Parts of code:
  4.         Copyright © 1985-1991 Commodore Business Machines Ltd.
  5.         ======================================================
  6.                      Posted to the Public Domain!
  7.                 (by permission of Commodore Norge A/S)
  8.  
  9.  
  10.   Just another small thingy to put in your Amigas S:Startup-Sequence.
  11. This one will patch the exec.library functions CopyMem and CopyMemQuick
  12. to become faster than the regular ones.  These functions are two of the
  13. cornerstone functions of the operating system, so most programs should
  14. benefit from this patch.  I really wonder why the routines never were
  15. optimised by Commodore in the first place!
  16.  
  17.    Known bugs:  None.  Should work with all versions of the O/S from
  18. KickStart 1.2 upto and including 2.04, and with all processors from the
  19. 68000 upto and including the 68040.
  20.   Even so, SOME virus killers might just report this patch as a virus -
  21. it isn't.  And, remember, if you use this program, you do it totally at
  22. your own risk - I will under no circumstances be held responsible for
  23. what this program does to any system (It should be 100% compatible with
  24. ye olde routines, though - the only difference is that this code won't
  25. bug out if you try to copy 0 bytes, the original code does...).
  26.   Speed increases may vary according to the processor, but some cycles
  27. should be should be shaved off on all systems.  My 68010-based system
  28. experiences some 3-50% boost with CopyMemQuicker, with the peak for a
  29. small number of bytes.
  30.   The patch is optimised for all 68k processors (except the 68008), and
  31. relies upon the loop-mode and instruction cache for the faster pro-
  32. cessors, but the routines might be optimised further by longword-
  33. aligning some parts of the code for the faster processors with 32-bits
  34. ram.  Feel free to do so...
  35.  
  36.   Usage:
  37.   1>  CopyMemQuicker
  38.  
  39.   This will act like a switch, and turns the program on/off (but I
  40. don't know why it ever should be turned off).  The memory used will NOT
  41. be freed when turning the function off, as some other part of your
  42. multitasking system might still be using the routine.  I think you
  43. could live with the loss of 2-300 bytes, though...
  44.  
  45.   To test the routine on your machine, run "testit" from CLI (This
  46. requires that you have version 2.0 of the O/S).  It might take some
  47. time to complete (depending on the processor), but should give fairly
  48. accurate test results.  (The reason for the test taking longer time
  49. than the figures printed on-screen indicate, is that the time to
  50. execute the timing loop itself is timed and deducted before printing
  51. (to give as accurate a result as possible).)
  52.  
  53.   There WAS a severe bug in versions 1.4 and 1.5 of this patch, which
  54. caused a guru on all machines except those fitted with a 68010.  This
  55. was due to a bug in the Aztec assembler, which could not handle ad-
  56. dresses like "*-2" properly.  The bug has been worked around, and the
  57. current version has been properly tested before release.  Sorry!
  58.  
  59. Enjoy,
  60. *Art
  61.