This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Are there implementations of STL container types (<deque>, <vector>, ...) which would use very efficient EDMA of c6000 (c7645) DSP and custom (pool) allocator to allocate in defined area, not heap. My application is very "constant" and allocation will be realized for constant lengths at boot time and destruction takes place when power is switched off ;-) As you can read between lines I'm not C++ guru.
Risto
Risto Hedman said:Are there implementations of STL container types (<deque>, <vector>, ...) which would use very efficient EDMA of c6000 (c7645) DSP and custom (pool) allocator to allocate in defined area, not heap.
Such an implementation is not supplied with the C6000 compiler. And I'm not aware of anyone else who has implemented one.
It is possible to implement a custom memory allocator, and then create STL objects which use that allocator to request and free memory. An example is in section 19.4.2 of Stroustrup's book The C++ Programming Language, 3rd edition. The title of that section is A User-Defined Allocator.
Thanks and regards,
-George