天然气与NASM:该汇编产生最佳code? [英] gas vs. nasm: which assembler produces the best code?

查看:162
本文介绍了天然气与NASM:该汇编产生最佳code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这两个工具翻译汇编指令直接放入机器code,但有可能确定哪一个生产最快和最干净的code?

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

推荐答案

当你在编译器的时候,您是precisely说明指令生成所以它不依赖于汇编。这取决于你。有你写的助记符和实际指令机器code之间的一个一一对应。

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.

这篇关于天然气与NASM:该汇编产生最佳code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆