title: How can I determine appropriate stack and heap sizes for ARM Cortex, using C++
body: <p>The cortex M3 processor startup file allows you to specify the amount of RAM dedicated to the stack and the heap.  For a c++ code base, is there a general rule of thumb or perhaps some more explicit way to determine the values for the stack and heap sizes?  For example, would you count the number and size of unique objects, or maybe use the compiled code size?</p>