Hi, folks,
Am using CCS V5.2.0.00069, TI MSP430 compiler V4.1.1, eabi, small code & data model (set via Properties>MSP430 Compiler>Processor Options). I would have expected int to be 32 bits, per Table 5-2 "MSP430 C/C++ EABI Data Type" of the "MSP430 Optimizing C/C++ Compiler v 4.1 Beta User's Guide SLAU132G". However, int seems to be only 16 bits, as indicated by this snippet of the .asm output of a test program:
test_val = sizeof (char); MOVX.A #1,&test_val
test_val = sizeof (int); MOVX.A #2,&test_val <------ expect #4
test_val = sizeof (long); MOVX.A #4,&test_val
test_val = sizeof (long long); MOVX.A #8,&test_val
Also __TI_EABI__ does not seem to be defined either. Has the compiler has defaulted to COFF (and 16-bit int) despite the EABI setting? Am I missing the obvious here, or is there some additional setting that's needed?