[ODE] alloc vs. malloc again

Nate Waddoups nathan at whatever.net
Thu Jun 20 22:38:02 2002


> > Is there anybody else who would like to see either of these
> > options available (via a #define statement)?
> 
> I certainly would.

As would I.

It just occurred to me that heap-based allocation could probably be made
to work as quickly as stack-based allocation (or close to it), if the
memory manager treats the pool like a stack.  In other words, have the
assumption that allocations and frees will be invoked in stack order like
push and pop operations.  Anyone know of an existing memory manager that
works that way?

--

Nate Waddoups
Redmond WA USA
http://www.natew.com