home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / gcc / help / 2575 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.0 KB

  1. Path: sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!rpi!bu.edu!olivea!charnel!sifon!vugranam
  2. From: vugranam@pike.ee.mcgill.ca (Vugranam Chakravarthy Sreedhar)
  3. Newsgroups: gnu.gcc.help
  4. Subject: malloc_size
  5. Message-ID: <1992Nov22.160059.4031@sifon.cc.mcgill.ca>
  6. Date: 22 Nov 92 16:00:59 GMT
  7. Sender: news@sifon.cc.mcgill.ca
  8. Distribution: gnu
  9. Organization: McGill University - VLSI Laboratory, Montreal, CANADA.
  10. Lines: 15
  11. Nntp-Posting-Host: kirk.ee.mcgill.ca
  12.  
  13. I noticed on the NeXT machine there is a library call
  14. called malloc_size, which given ptr it
  15. returns the block size allocated to this ptr.
  16. I noticed NeXT uses gcc 1.37 as its compiler.
  17. I don't see similar feature being provided by gcc
  18. on sparc or r6000. We need this malloc_size
  19. to collect statistics for our project. I posted
  20. requesting this info. on comp.lang.c, and was
  21. told that this is a non-portable feature of the language.
  22. We use gcc compiler (1.37.1/ 2.2.2) on sparc
  23. machine. Can some one please help me with this?
  24.  
  25. Thanks a lot...
  26.  
  27. Sreedhar
  28.