汇编语言是一种以处理器指令系统为基础的低级语言,采用助记符表达指令操作码,采用标识符表示指令操作数。作为一门语言,对应于高级语言的编译器,需要一个“汇编器”来把汇编语言原文件汇编成机器可执行的代码。常用的高级语言编译器有Microsoft公司的MASM系列和Borland公司的TASM系列编译器,还有一些小公司推出的或者免费的汇编软件包等。
IBM XL C 编译器是一个非常好的优化器,结果是 C 算法的性能要比未经优化的汇编语言实现的性能好很多。
The IBM XL C compiler is a very good optimizer, and as a result, the C algorithm delivers superior results to a simple unoptimized assembly language implementation.
毫不奇怪,没有哪种编译器可以接近上一篇文章中手工编写的汇编语言版本,不过对于这个程序来说,XLC的效果比GCC更好。
Unsurprisingly, neither compiler does nearly as well as the hand-coded assembly language version from the previous article, but for this program XLC outperformed GCC.
编译器在自己生成的汇编语言中提供了适当的操作数。
The compiler supplies the appropriate operand in the assembly language code it generates.
应用推荐