小编JOK*_*TOR的帖子

每条 x86 指令的能耗?

我知道有一些测量程序功耗的工具,例如 powerTOP、RAPL 等。

但是,我想知道是否存在某种基准测试,例如 Agner Fog 的 CPU 基准测试https://www.agner.org/optimize/instruction_tables.pdf来测量每条指令的能耗?

假设我有以下说明

    movq    %rdi, -8(%rbp)
    movq    %rsi, -16(%rbp)
    movq    -8(%rbp), %rdx
    movq    -16(%rbp), %rax
    cmpq    %rax, %rdx
    setb    %al
Run Code Online (Sandbox Code Playgroud)

我只想查看诸如 、 之类的指令movq,cmpq并setb估计程序的功耗。我使用的是 Intel i5 10400 处理器,但我可能正在寻找不同微架构的更广泛的基准测试。
这可能吗?

x86 assembly intel energy cpu-architecture

6
推荐指数
1
解决办法
679
查看次数

标签 统计

assembly ×1

cpu-architecture ×1

energy ×1

intel ×1

x86 ×1