Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
除了一个小细节之外,NEON 语法是相同的:对齐的加载/存储在 ARM 中使用 @,在 GAS 中使用 ,:。这是因为@是GAS中的注释符号。
手臂:
气体:
NEON syntax is the same besides one small detail: the aligned loads/stores use @ in ARM and ,: in GAS. This is because @ is a comment symbol in GAS.
ARM:
GAS:
我在 http:// /www.shervinemami.info/armAssembly.html
I have written some info about ARM + NEON Assembly code for GCC (including an example NEON function implementation) at http://www.shervinemami.info/armAssembly.html
从 GAS 开始时,有一件不言自明的事情是定义符号的方式。它在 ARM 汇编器中的工作方式不适用于 GAS。
但在 GAS 中,您可以只使用 #define 为某些寄存器创建符号。如...
#define MyLoopCounter r0
#define MyLoopInc #32
这样...
add MyLoopCounter,MyLoopCounter,MyLoopInc
是一样的
add r0,r0,#32
否则,我发现几乎所有其他内容都是相同的,当然还有已经回答的对齐差异。
One thing that is not self explanatory when starting with GAS is the way to define a symbol. The way it works in ARM assembler will not work with GAS.
But in GAS you can just use #define to make a symbol for some register. Such as...
#define MyLoopCounter r0
#define MyLoopInc #32
Such that...
add MyLoopCounter,MyLoopCounter,MyLoopInc
is the same as
add r0,r0,#32
Otherwise I found that almost everything else was the same, and of course the alignment difference as already answered.