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.

__attribute__((aligned(128))) shows error

i have defined a structure in header file as shown below

typedef struct { 

UNSIGNED8 NumOfEntries;
UNSIGNED32 ModChargeCounter;
UNSIGNED32 ModDisChargeCounter;
UNSIGNED32 TotalDisChargeTime;
UNSIGNED32 TotalChargePower;

} PERFM_REG;

I am trying to  use _attribute__ align as given below but am receiving an error.

EXTERN PERFM_REG  per_reg __attribute__((aligned(128))) ; 

Is there something that i am doing wrong or simply not aware of?