Embedded Systems
fma.txt
Associated article: Fast Memory Allocation
Tags: Database Parallel Embedded Systems
Published source code accompanying the article by H. Thomas Richter in which he presents a power-of-two Fast Memory Allocator (FMA) for embedded systems. Also see FMA.ZIP
Fast Memory Allocation
by H. Thomas Richter
Listing One
struct t_heappolicy {
unsigned long size;
int flags;
char key;
int remove_now;
};
Listing Two
int main(int argv, char **argv)
{
#ifdef FMA
t_heappolicy policy = { 1 << 20, 0, 1 };
#endif
int *ip = ...


