[En-Nut-Discussion] Use of alloca in Nut/OS
harald.kipp at egnite.de
Mon Aug 11 11:44:55 CEST 2008
Ole Reinhardt wrote:
> Perhaps we should implement some kind of a slice allocator for these
> class of problems.
AFAIK, the main advantage of a slice allocator is, that it avoids heap
fragmentation by allocating large chunks. As explained: By using best
fit, heap fragmentation is typically not an issue in Nut/OS.
The suggested slice allocator may reduce the CPU cycles as well. It
will, however, increase the code size and, more important, reduce the
benefit of the best fit algorithm.
IMHO, when implementing a slice allocator, the currently used allocation
scheme should be reconsidered as well.
More information about the En-Nut-Discussion