=?us-ascii?Q?Vaclav=20Peroutka?= <vacla...@seznam.cz> wrote: > Can I force linker to shout in such situation ?
In addition to the problem Eric mentioned, all AVR linker scripts generally set the length of the data segment to 0xffa0 (starting at 0x60 by default, which can be overridden by the compiler), so even a static RAM allocation overflow would only be detected once the allocation exceeds that value. This has been done since the linker has no notion about which AVR device could possibly access external SRAM and which cannot. Thus, all AVRs are assumed to offer this capability. Without that generalization, we would need one linker script per AVR device (actually even five of them, because the linker needs five files per device/architecture). Just use the avr-size command to monitor the static RAM and ROM consumption. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list