home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11602 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  828 b 

  1. Xref: sparky comp.lang.c:11602 comp.lang.c++:11553
  2. Path: sparky!uunet!nwnexus!ole!rwing!fnx!nazgul!bright
  3. From: bright@nazgul.UUCP (Walter Bright)
  4. Newsgroups: comp.lang.c,comp.lang.c++
  5. Subject: Re: malloc/new memory allocatio overhead?
  6. Message-ID: <856@nazgul.UUCP>
  7. Date: 25 Jul 92 17:42:30 GMT
  8. References: <1992Jul14.132746.23256@ncsu.edu>
  9. Reply-To: bright@nazgul.UUCP (Walter Bright)
  10. Followup-To: comp.lang.c
  11. Organization: Zortech, Seattle
  12. Lines: 7
  13.  
  14. In article <1992Jul14.132746.23256@ncsu.edu> odkahn@eos.ncsu.edu (Opher D. Kahn) writes:
  15. /Does anybody know exactly what memory allocation overhead results
  16. /from a new or malloc?
  17.  
  18. With Zortech C/C++, the malloc'd size is rounded up to the nearest 2/4
  19. byte boundary, and then 2/4 bytes are added (for the size). Whether
  20. it is 2 or 4 depends on if it is a 16 or 32 bit program.
  21.