title: Can I write a C application without using the heap?
body: <p>I'm experiencing what appears to be a stack/heap collision in an embedded environment (see <a href="https://stackoverflow.com/questions/960389/how-can-i-visualise-the-memory-sram-usage-of-an-avr-program">this question</a> for some background).</p>
  
  <p>I'd like to try rewriting the code so that it doesn't allocate memory on the heap.</p>
  
  <p>Can I write an application without using the heap in C? For example, how would I use the stack only if I have a need for dynamic memory allocation?</p>