Hi,
Just switched from gcc to CCSv6 and saw this surprising fact.
#include <msp430.h>
int main(void) {
WDTCTL = WDTPW | WDTHOLD;
int count = 30;
char array[count];
P1DIR |= BIT0;
P1OUT |= BIT0;
return 0;
}
Program execution stops on "char array[count]" even though count is known at compile-time to be equal to 30. GCC works ok, while for CCS it doesn't. It doesn't work for const int either. Why is that?