Hi,

  I think I found a bug in msp430-size. I'll show it with an example:

/* --- begin of code --- */
int i;
static int j;
volatile int k;

int main (void) {
  return 1;
}
/* --- end of code --- */


msp430-gcc -mmcu=msp430x149 -I/usr/local/msp430/msp430/include -Wall -O1 -S 
size-test.c -o size-test.s
msp430-as -mmcu=msp430x149 size-test.s -o size-test.o
msp430-size size-test.o
   text    data     bss     dec     hex filename
     10       0       2      12       c size-test.o
msp430-gcc -mmcu=msp430x149 -B/usr/local/msp430/msp430/lib size-test.o -o 
size-test
msp430-size size-test
   text    data     bss     dec     hex filename
    110       0       6     116      74 size-test

   Why is msp430-size reporting "2" in the "bss" field for file size-test.o?

   Thanks in advance,
     Pedro

Reply via email to