The default assembler under linux is "as". I know gdb supports disassembly using both AT&T and Intel syntax.
linux下的默认汇编程序是“as”。我知道gdb支持使用AT&T和Intel的语法进行拆分。
My question is, I know "as" supports AT&T format, does it support Intel format? E.g. I've "b.s" file
我的问题是"as"支持AT&T格式,它支持英特尔格式吗?例如我“b。s”文件
.global _start
_start:
mov ax,0
Then
然后
as b.s
b.s: Assembler messages:
b.s:3: Error: too many memory references for `mov'
How to make "as" compile this .s file? Thanks.
如何使“as”编译此.s文件?谢谢。
1 个解决方案
#1
3
See this answer for some pointers of gcc/gas with Intel syntax.
有关使用Intel语法的gcc/gas的一些指针,请参见此答案。
I personally have used NASM for the occasional pure assembly projects (which is Intel syntax native) or Intel's icc for C programs with inlines.
我个人使用NASM用于偶尔的纯汇编项目(是Intel语法本机),或者是使用inline的C程序使用Intel的icc。
#1
3
See this answer for some pointers of gcc/gas with Intel syntax.
有关使用Intel语法的gcc/gas的一些指针,请参见此答案。
I personally have used NASM for the occasional pure assembly projects (which is Intel syntax native) or Intel's icc for C programs with inlines.
我个人使用NASM用于偶尔的纯汇编项目(是Intel语法本机),或者是使用inline的C程序使用Intel的icc。