AnsweredAssumed Answered

aligned attribute maximum value

Question asked by bogdanlaiu on Oct 30, 2013
Latest reply on Nov 7, 2013 by Pascal Irrle

"Use __attribute__ ((aligned(...))) directive to specify to the compiler on what memory boundary to store data objects. This directive specifies which multiple of bytes to store an object.

The format of this directive is

__attribute__ ((aligned( x )) 

where x is a decimal number of a power of 2 from 1 to 4096."

 

That is a quote from CW 10.4 Documentation for PPC Arch.

First of all the CW will complain only if x is greater than 8192. And seems that it works with 8192. So the documentation seems to be wrong on this.

Second why is there such a limit? Why not 16384 or 32768? And how can I trick it to align to a larger value?

Outcomes