I'm striving with a very common problem: fitting a BIG program in a tight space. Seems a common one, right ? :-) I'm using the CCS compiler v2.666. How can I reorganize my sources in order to minimize the "unused fragments" that the compiler reports ? I get this: ------------------------------ (cut) ROM used: 3144 (77%) 3441 (84%) including unused fragments RAM used: 86 (45%) at main() level 103 (54%) worst case Stack: 6 worst case (5 in main + 1 for interrupts) ------------------------------ (cut) I can imagine some problem of segment alignment, or bank switching overhead. But even cutting/pasting some code around, I could'nt manage to reduce that. Commenting some of the more heavy functions reduces that. But I can't find a pattern, in that practice. What are the most common causes of this "waste" of space ?