|
|
|
|
|
by Const-me
2963 days ago
|
|
> So you cant use the STL. std::array is in there since C++ 11 and it doesn’t use heap. And/or you can use STL with custom allocators that work without heap. We did something similar developing for Nintendo Wii console. There was a heap but we didn’t want to use it to avoid memory fragmentation. AFAIR we used two arenas (essentially stacks), one very small for temporary data cleaned up at the start of each frame, and a large one cleaned up when a level is unloaded. However, I don’t have hands on experience developing firmware for medical devices, so I’m not sure it’ll work for them. |
|