How to compile for a low-memory device?