avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] Bootloader section and case range (case 2 ... 3)


From: pfaff - Markus Pfaff
Subject: [avr-libc-dev] Bootloader section and case range (case 2 ... 3)
Date: Mon, 29 Sep 2003 12:51:33 +0200

Hi,

in case you are building a bootloader, be aware not to use the gcc
special C construct

  case range

It's elegant, but somewhat evil for bootloader construction. avrgcc will
create a kind of anonymous subroutine to handle all case range parts in
a switch statement. The problem will be that this routine will NOT be
placed in the .bootloader section, but in the .text section (application
program). Your bootloader will be incomplete without some code in the
application section.

Markus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]