This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am using MSP430F2410 in CC6.
Migrating code from TI V4.3.1 compiler to GCC in CCS6.0
I want to know what is the alternate for the below TI compiler code in GCC
#pragma DATA_ALIGN(GenPurposeBuffer, 2); static BYTE GenPurposeBuffer[ MAX_BUFFER ]; // Accessed via GetBufferPtr()
GCC supports a number of attributes for variables (and functions and types). Something like this will work ...
static BYTE GenPurposeBuffer[ MAX_BUFFER ] __attribute__ ((aligned (2)));
By the way, the TI compiler also accepts these attributes.
Thanks and regards,
-George