开发者

Using .align in inline assemby

I'm using ".align 16 \n\t" in some inline ARM assembly that is implemen开发者_高级运维ting some loops to align it on a 16 byte boundary however gcc asm compiler is complaining that alignement is too large

i want to implement -falign-loops=16 in asm for a particular loop

Thanks


I think the .align directive for this particular CPU probably takes a power of 2 for the alignment argument, so to get 16 byte alignment you would need:

.align 4

Note that this directive behaves differently for different CPUs - see tigcc.ticalc.org/doc/gnuasm.html#SEC70

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜