Heapless C/C++
Shiv Shankar Dayal
shivshankar.dayal@gmail.com
Sat Oct 8 10:13:00 GMT 2011
> It sounds like all you're proposing is using the stack for dynamic
> allocation instead of the heap, then adding a compacting garbage
> collector. It's easier to just use the heap and make sure you don't
> leak memory. It's not that hard.
>
Yes. This is true that I want to use stack for dynamic memory allocation
but I do not want a garbage collector. Garbage collection should happen
though RAII.
--
Best regards,
Shiv Shankar Dayal
More information about the Gcc
mailing list