Measuring Stack Space (AN019)

Measuring Stack Space for Parallel Processes

Share this object
<

Overview

Content

When programming the multicore Propeller 1 (P8X32A) in Spin, each Spin-based parallel process that is launched needs its own stack space allocated in main memory.

To develop optimal Spin-based multiprocessing objects, allocate plenty of stack space during development, then, as a last step, decrease it to an optimal size by measuring actual call stack requirements using the Stack Space.spin library object.

Download the full PDF application note, and accompanying code. Open the "Stack Length Demo.spin" file in Propeller Tool or Spin Tools IDE to get started.


Downloads  
Zip archive download

Leave a Reply