Compiler command for aligning all arrays

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Compiler command for aligning all arrays

1,772件の閲覧回数
helferog
Contributor II

Hey,

I am working with a S32R274 Processor and build the Code with the S32 Studio.

I face the issue, that parameter arrays which are loaded by the SPT must be aligned.

Currently I use global arrays like:

uint32_t fft256_command_list[] __attribute__ ((aligned (8))) = { ... };

and add the alignment manually to each array.

Is there a way to set this alignment by default (as compiler setting) ?

Thanks and best regards

Roger

ラベル(1)
タグ(4)
2 返答(返信)

700件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello Roger,

I am afraid, the only possibility is add attribute aligned manually to each array. I tried to search another solution, but it seems gcc does not allow anything else.

Regards,

Martin

700件の閲覧回数
helferog
Contributor II

Hello Martin,

Alright, thank you for the fast response.

Best regards,

Roger

0 件の賞賛