I have some code running on an ARM7TDMI LPC2378 using FatFS to access a flash card (SD card via bit-banged SPI). I'm using GCC and newlib (prebuilt reentrent). I'm walking the structure recursively and I want to allocate some space to concatenate a couple of strings each time the function calls itself. The problem is that malloc() likes to bring along way too many friends (sbrk, syscalls etc.). It's also kinda wasteful for my needs and all I really need is a very simple heap allocator. _pure_ptr is a pig too. I'd like to avoid using the stack, though I suppose it is an option I might not be able to ignore.
Anyone know of a simple replacement? I've been Googling, but it's not bringing me much luck. Mostly hits for malloc like modules with leak checking, etc...... I don't need or want any of that, I just want it to be as simple as possible. One thread, no RTOS just my app is present. I didn't really want to write my own, but ........
thanks for any pointers :-)