网上说 在intel语法里的代码前加上.intel_syntax就可以用AS编译这个汇编源文件
但是 我试了下不行啊
改成 intel syntax / intel_syntax 都不行
yrjd@yrjd-virtual-machine:~/c$ as 11.s -o 11.o
11.s: Assembler messages:
11.s: Warning: end of file not at end of a line; newline inserted
11.s:1: Error: unknown pseudo-op: `.intel'
11.s:2: Error: no such instruction: `assume cs:code,ds:data'
11.s:4: Error: no such instruction: `data segment'
11.s:5: Error: no such instruction: `s db 72ello world!4410h,13h,36'
11.s:6: Error: no such instruction: `data ends'
11.s:8: Error: no such instruction: `code segment'
11.s:9: Error: too many memory references for `mov'
11.s:10: Error: too many memory references for `mov'
11.s:11: Error: junk `h' after expression
11.s:11: Error: operand size mismatch for `int'
11.s:13: Error: too many memory references for `mov'
11.s:14: Error: junk `h' after expression
11.s:14: Error: operand size mismatch for `int'
11.s:15: Error: too many memory references for `mov'
11.s:16: Error: junk `h' after expression
11.s:16: Error: operand size mismatch for `int'
11.s:17: Error: no such instruction: `code ends'
11.s:18: Error: no such instruction: `end start'
然后按照Z版给的那个方法去试 也不行
yrjd@yrjd-virtual-machine:~/c$ -msyntax=[intel]
-msyntax=[intel]: command not found
yrjd@yrjd-virtual-machine:~/c$ -msyntax=[att|intel]
intel]: command not found
-msyntax=[att: command not found
怎么弄 ?
直接学at&t 语法算来?