Qualcomm Interview Question

How do you write software for firmware when there is very little memory.