home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / clib / progs / clibs / ReadMe
Encoding:
Text File  |  1994-09-07  |  1.2 KB  |  52 lines

  1.  
  2. Here are two C librarys:
  3.  
  4.  
  5. StubsHack
  6. ---------
  7.  
  8. This is a C library which uses an idea of Martin Ebourne's to enable you
  9. to very easily redirect all calls to the ANSI memory allocation
  10. functions (malloc, realloc, calloc, free) to your own function. This
  11. could be used to add heap-checking to the malloc functions.
  12.  
  13. The important point is that this happens at *runtime*, so even if you
  14. link your program with a library which was compiled years ago, all
  15. malloc calls within the library will be redirected.
  16.  
  17. See my 'HeapGraph' library for an example of how to use StubsHack.
  18.  
  19.  
  20. HeapGraph
  21. ---------
  22.  
  23. This is a C library which uses my StubsHack library to provide a
  24. very simple way of making your program send information on every block
  25. of memory allocated/freed to a file in pipe:$.C_Debug. This is scanned
  26. by the included application !HeapDisp, which displays your program's
  27. heap graphically in real time, and also displays diagnostic text. 
  28.  
  29. An example application is included.
  30.  
  31.  
  32.  
  33. All source is included.
  34.  
  35.  
  36. - Julian Smith
  37.  
  38. ------------------------
  39. julians@cogsci.ed.ac.uk
  40. ------------------------
  41.  
  42. or:
  43.  
  44. ------------------------
  45. Department of Psychology
  46. University of Edinburgh
  47. 7 George Square
  48. Edinburgh
  49. EH8 9JZ
  50. UK
  51. ------------------------
  52.