home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / misc / 23297 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.3 KB  |  38 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!munnari.oz.au!metro!mama!andy
  3. From: andy@research.canon.oz.au (Andy Newman)
  4. Subject: Re: ksh
  5. Message-ID: <BznAJD.6uC@research.canon.oz.au>
  6. Sender: news@research.canon.oz.au
  7. Organization: Canon Information Systems Research Australia
  8. References: <FISCHER.92Dec12191250@solsort.iesd.auc.dk> <Bz9voD.AF@research.canon.oz.au> <1gomlsINNmot@darkstar.UCSC.EDU>
  9. Date: Tue, 22 Dec 1992 05:14:00 GMT
  10. Lines: 26
  11.  
  12. isbell@cats.ucsc.edu (Art Isbell) writes:
  13. >
  14. >Have you possibly neglected to strip bash?
  15. >
  16. >259[~]% ls -l /usr/local/bin/bash /bin/sh
  17. >-rwxr-xr-x  2 root      122880 Jul 21 06:16 /bin/sh*
  18. >-rwxr-xr-x  1 root      221184 Oct  5 11:28 /usr/local/bin/bash*
  19. >260[~]% bash -version
  20. >bash -version
  21. >GNU bash, version 1.12.1
  22.  
  23. I'm talking about incore memory use. An ls is not a good indicator of
  24. code/data size anyway, there's lots of junk in Mach-O executable
  25. files. Try size instead...
  26.  
  27. $ size /bin/sh /usr/local/bin/bash
  28. __TEXT  __DATA  __OBJC  others  dec     hex
  29. 114688  24576   0       8192    147456  24000   /bin/sh
  30. 245760  16384   0       8192    270336  42000   /usr/local/bin/bash
  31. $
  32.  
  33. (This method has it own problem as it is measuring static code size and not
  34. the working set of the acutal executable.)
  35.  
  36. -- 
  37. Andy Newman (andy@research.canon.oz.au)
  38.