gas vs. nasm: which assembler produces the best code?

前端 未结 6 1438
挽巷
挽巷 2021-02-14 02:46

Both tools translate assembly instructions directly into machine code, but is it possible to determine which one produces the fastest and cleanest code?

6条回答
  •  抹茶落季
    2021-02-14 03:34

    When you're writing in assembler, you are precisely describing the instructions to generate so it doesn't depend on the assembler. It depends on you. There's a one-to-one correspondence between the mnemonics you write and actual instructions in machine code.

提交回复
热议问题