博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
n字节对齐 代码_大但正确对齐和优化的代码比每指令/操作码打包的字节少的代码快...
阅读量:2521 次
发布时间:2019-05-11

本文共 627 字,大约阅读时间需要 2 分钟。

n字节对齐 代码

Is large-but-correctly-aligned-and-optimized code than less-bytes-per-instruction/opcode-packed code?

大但正确对齐和优化的代码是否比每个指令/操作码打包的字节少的代码 ?

Alex Ionescu mentioned in :

提到的Alex Ionescu:

code to be “smaller” instead of “faster” though — on modern processors for cases like interrupts and such, large-but-correctly-aligned-and-optimized code is faster than less-bytes-per-instruction/opcode-packed code. 代码“更小”而不是“更快” —在现代处理器上,如中断之类的情况,大但正确对齐和优化的代码比不那么快—每指令字节数/操作码打包代码。
ie:
即:
mov eax, [foo]add eax, 1mov [foo], eax
mov eax, [foo]add eax, 1mov [foo], eax

is faster than

inc [foo]
Answered by anonymous.
匿名回答。

翻译自:

n字节对齐 代码

转载地址:http://xsowd.baihongyu.com/

你可能感兴趣的文章
Linux lsof详解
查看>>
子组件给父组件传数据
查看>>
unix/linux下的共享内存、信号量、队列信息管理
查看>>
Hilbert先生旅馆的故事
查看>>
采访吴岳师兄有感 by 王宇飞
查看>>
LVS简略介绍
查看>>
hdu 1021 Fibonacci Again
查看>>
JVM架构_XmnXmsXmxXss有什么区别:转
查看>>
PHPExcel 使用心得
查看>>
洛谷 P3374 【模板】树状数组 1(单点加,区间和)
查看>>
verilog 代码编写小记
查看>>
PyQT的安装和配置
查看>>
从 docker 到 runC
查看>>
守护进程
查看>>
php数组
查看>>
Linux 防火墙
查看>>
互联网金融P2P主业务场景自动化测试
查看>>
My third day of OpenCV
查看>>
Android的View和ViewGroup分析
查看>>
echarts.js中的图表大小自适应
查看>>