On 2007-03-28, Grant Edwards <[email protected]> wrote:
> 2) Currently, variables are placed in RAM in the order they
> happen to occur in the source file. This means that there
> can be a significan number of wasted bytes do to alignment
> requirements. When you've only got 256 bytes of RAM, you
> can't really afford to waste any of them. ;)
>
> I seem to recall that there's something you can do in the
> linker script to fix that: you can tell the linker to sort
> objects by size in order to minimize padding wastage. But I
> can't quite remember now to do that. I'll try to find a
> example of that tomorrow...
It would appear that --sort-common should solve this problem,
but it appears to do nothing (either with or without
-fdatasections). Does it work for anybody else?
--
Grant Edwards grante Yow! This MUST be a good
at party -- My RIB CAGE is
visi.com being painfully pressed up
against someone's MARTINI!!