AW: [En-Nut-Discussion] Ethernut 2 Bootloader Bug Fixed

Harald Kipp harald.kipp at egnite.de
Sat Jan 31 11:14:02 CET 2004


Hi Oliver,

At 20:25 30.01.2004 +0100, you wrote:
>Hi,
>
>on my cygwin environment there is no difference in the listing file between
>
>         addr = (unsigned long) page << 8;
>and
>         addr = (unsigned long) page * SPM_PAGESIZE;
>
>I'm currently using avr-gcc 3.4 (prerelease). Perhaps there was a bug in 3.3
>and they have fixed it.

They may have enhanced the optimizer. In 3.3 the
second line generates a call to __multsi for
32 bit multiplication. But the bootloader does
not link any runtime lib.

Harald




More information about the En-Nut-Discussion mailing list