Memory Allocation For Embedded Systems With A Compile-Time-Unknown Scratch-Pad Size.