🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #682

malloc_size

#682
From: Vugranam Chakravarthy Sreedhar
Date: Sun, 22 Nov 1992 16:00
15 lines
1068 bytes
I noticed on the NeXT machine there is a library call
called malloc_size, which given ptr it
returns the block size allocated to this ptr.
I noticed NeXT uses gcc 1.37 as its compiler.
I don't see similar feature being provided by gcc
on sparc or r6000. We need this malloc_size
to collect statistics for our project. I posted
requesting this info. on comp.lang.c, and was
told that this is a non-portable feature of the language.
We use gcc compiler (1.37.1/ 2.2.2) on sparc
machine. Can some one please help me with this?

Thanks a lot...

Sreedhar
Technical Details
Message-ID: <1992Nov22.160059.4031@sifon.cc.mcgill.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!rpi!bu.edu!olivea!charnel!sifon!vugranam

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!rpi!bu.edu!olivea!charnel!sifon!vugranam
From: vugranam@pike.ee.mcgill.ca (Vugranam Chakravarthy Sreedhar)
Newsgroups: gnu.gcc.help
Subject: malloc_size
Message-ID: <1992Nov22.160059.4031@sifon.cc.mcgill.ca>
Date: 22 Nov 92 16:00:59 GMT
Sender: news@sifon.cc.mcgill.ca
Distribution: gnu
Organization: McGill University - VLSI Laboratory, Montreal, CANADA.
Lines: 15
Nntp-Posting-Host: kirk.ee.mcgill.ca