由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - 问个Computer Arch的问题
相关主题
多核CPU对单线程程序有加速作用吗?CPU provider (例如arm)都能提供什么? (CE 和 CS各提供了什么 (转载)
新手问个MIPS 问题CS课程选择
预测几个值图灵奖的得主JPEG求教
为什么有这么多逻辑?支持 MIPS的 Linux 有哪些啊?
哪位体系大牛解释下为什么ARM的架构比X86能耗有优势?请教计算机教材
请教:哪里有C语言写的TCP/IP stack and web server? (转载)软工research迷茫中,求指教
CS opening @ Santa Clara, CA (转载)CS rocks, Coding rocks, hardware arch rocks
(Updated) CS opening @ Santa Clara, CA (转载)推荐一个computer arch的站点
相关话题的讨论汇总
话题: load话题: software话题: itanium
进入CS版参与讨论
1 (共1页)
b**y
发帖数: 121
1
目前除了IA64支持software managed speculation,
还有什么architecture支持speculation?
PA-RISC/MIPS/Alpha似乎都没有这方面的指令......
哪位牛人给说说?
z*********g
发帖数: 5
2
你要说的似乎是predication
PA-RISC/MIPS/Alpha/x86 等依赖硬件speculation, 支持软件predication
当然不必要.
btw, data prefetch指令也是software managed speculation,
一般机器上都有.

【在 b**y 的大作中提到】
: 目前除了IA64支持software managed speculation,
: 还有什么architecture支持speculation?
: PA-RISC/MIPS/Alpha似乎都没有这方面的指令......
: 哪位牛人给说说?

b**y
发帖数: 121
3
Thanks. Here is what I have found after several days search.....
I do mean speculation which is not predication. One example is IA-64's
ld.s/chk.s instruction. With such instructions, software can do speculative
load using ld.s and perform computation on the loaded value. Software uses
chk.s to check if there is exception due to ld.s. If the load cause
exceptions, they are deferred until chk.s checks them and jumps to proper
recovery code (which is part of the software instead of OS). Other mach

【在 z*********g 的大作中提到】
: 你要说的似乎是predication
: PA-RISC/MIPS/Alpha/x86 等依赖硬件speculation, 支持软件predication
: 当然不必要.
: btw, data prefetch指令也是software managed speculation,
: 一般机器上都有.

z*********g
发帖数: 5
4
From what you described, ld.s/chk.s seem a pretty bad design to me. You want
anything that is speculative to be light-weighted. As a result, speculative
loads are usually unbinding - upon an exception, the load is simply squashed.
By adding chk.s for the uncommon cases, you slow the normal cases down ...

load
mechansim.

【在 b**y 的大作中提到】
: Thanks. Here is what I have found after several days search.....
: I do mean speculation which is not predication. One example is IA-64's
: ld.s/chk.s instruction. With such instructions, software can do speculative
: load using ld.s and perform computation on the loaded value. Software uses
: chk.s to check if there is exception due to ld.s. If the load cause
: exceptions, they are deferred until chk.s checks them and jumps to proper
: recovery code (which is part of the software instead of OS). Other mach

b**y
发帖数: 121
5
There are reasons for such speculation scheme. Intel/HP designers are not just
making some fancy stuff in their Itanium/Itanium II processors. In Itanium
processor, control speculation uses ld.s/chk.s to move ld above barriers such
as branches. It's light-weighted and doesn't slow the normal case. If the load
may trigger exception, but finally it turns out that the speculative load is
not in the real path, no exception handling is needed. It's just silently
discarded. If it is in the real path,

【在 z*********g 的大作中提到】
: From what you described, ld.s/chk.s seem a pretty bad design to me. You want
: anything that is speculative to be light-weighted. As a result, speculative
: loads are usually unbinding - upon an exception, the load is simply squashed.
: By adding chk.s for the uncommon cases, you slow the normal cases down ...
:
: load
: mechansim.

1 (共1页)
进入CS版参与讨论
相关主题
推荐一个computer arch的站点哪位体系大牛解释下为什么ARM的架构比X86能耗有优势?
[合集] 谁来给CS定义一下最基本的知识结构吧?请教:哪里有C语言写的TCP/IP stack and web server? (转载)
问两个系统的会CS opening @ Santa Clara, CA (转载)
学arch好找工作吗?(Updated) CS opening @ Santa Clara, CA (转载)
多核CPU对单线程程序有加速作用吗?CPU provider (例如arm)都能提供什么? (CE 和 CS各提供了什么 (转载)
新手问个MIPS 问题CS课程选择
预测几个值图灵奖的得主JPEG求教
为什么有这么多逻辑?支持 MIPS的 Linux 有哪些啊?
相关话题的讨论汇总
话题: load话题: software话题: itanium