Search code examples
c++eclipseavravr-gccavrdude

How to use C++ STD with AVR compiler?


I have set up the AVR compiler for using with an Atmel microcontroller using this guide.

I don't have access to strings, vectors etc. How can this be added?


Solution

  • do not do this.

    using dynamic memory allocation on avr is not recommendable, since it has not a MMU and only very limited RAM and dynamic memory allocation requires some overhead for bookkeeping. also there is the danger of memory fragmentation.

    on such tiny processors you should only use static and autmatic fixed size memory buffers. that ensures deterministic run time behavior.