Hello,
I was wondering if is possible to declare C++ member buffer variables aligned, at the moment using #pragma DATA_ALIGN allows only static buffers to be aligned which means not allowed in a class.
Best regards,
David.
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.
Hello,
I was wondering if is possible to declare C++ member buffer variables aligned, at the moment using #pragma DATA_ALIGN allows only static buffers to be aligned which means not allowed in a class.
Best regards,
David.
Hi,
The C6000 compiler support the gcc extension __attribute__((aligned(X)), but you have to enable the gcc extension in "Language Options". Mybe it is supported by your CGT also.
Thank you Alberto for your help, that attribute fixed my problem. gcc extensions are supported and now are enabled.
Best regards,
David.