小编Luk*_*ohl的帖子

Raspbian gcc 不知道“.intel_syntax”?

我试图执行:

gcc -o main main.c squrt.S -lm -no-pie
Run Code Online (Sandbox Code Playgroud)

这在另一台计算机上工作,但这次它不知道一条指令:

squrt.S: Assembler messages:
squrt.S:7: Error: unknown pseudo-op: `.intel_syntax'
squrt.S:12: Error: junk at end of line, first unrecognized character is `#'
squrt.S:17: Error: bad instruction `movq rax,xmm0#Bits from xmm0 to rax'
squrt.S:18: Error: bad instruction `shl rax,1'
squrt.S:19: Error: bad instruction `shr rax,53#Exponent of the argument'
squrt.S:20: Error: ARM register expected -- `cmp rax,2047#checks if x is real'
squrt.S:21: Error: bad instruction `je end'
squrt.S:22: Error: ARM register expected -- `mov rcx,1#sgn(x)' …
Run Code Online (Sandbox Code Playgroud)

linux gcc assembly

1
推荐指数
1
解决办法
656
查看次数

标签 统计

assembly ×1

gcc ×1

linux ×1