开发者

MASM/NASM Differences

What are the syntax differences between the NASM and MASM a开发者_StackOverflowssemblers?


Section 2.2 of the NASM documentation is titled Quick Start for MASM Users which lists the important differences between NASM and MASM.


What an interesting question. The difference between them is, they are not compatible! But then again, nasm assemblers are not compatible amongst themselves, it seems. Learned it the hard way, while compiling libvpx. I think this single example says it all:

ml64.exe (MSVC 2019) -> throws

nasm for windows -> compiles some *.asm files, throws on some

invalid combination of opcode and operands

Huh?

yasm for windows -> works

llvm assembler (debian) -> throws:

    /usr/lib/llvm-13/bin/llvm-as

https://packages.debian.org/experimental/llvm-13

yasm (debian) -> works

nasm (debian) -> works

GNU assembler -> ???

https://manpages.debian.org/experimental/binutils-common/as.1.en.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜