开发者

Using .align in inline assemby

开发者 https://www.devze.com 2022-12-27 11:06 出处:网络
I\'m using \".align 16 \\n\\t\" in some inline ARM assembly that is implemen开发者_高级运维ting some loops

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

精彩评论

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