| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
The answer, on Mac OS X is vm_allocate/vm_deallocate._______________________________________________
So, right now, I'm using malloc/realloc, which in turn on OSX, is a
wrapper to NewPtr and BlockMoveData. This wrapping is done by
CodeWarrior's libraries (which of course the source to is included!)
So, thats MW ANSI malloc -> Carbon NewPtr -> Mach malloc -> Mach
vm_allocate.
I would not recommend writing your own malloc replacement on top of
vm_allocate; the Mach malloc is performs quite well. But if you have a
special need for a super-high-performance page allocator, vm_allocate
might be the way to go.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.