Dynamic allocation for scratch-pad memory using compile-time decisions | Synapse