TONT 41583 如果FlushInstructionCache啥事也不做,为什么还要调用它呢?

请注意:本页内容发布于 2231 天前,内容可能已经过时,请注意甄别。

存在的理由。

原文链接:https://blogs.msdn.microsoft.com/oldnewthing/20031208-00/?p=41583

If you look at the implementation of FlushInstructionCache on Windows 95, you’ll see that it’s just a return instruction. It doesn’t actually do anything. So why do you have to call it?

看一看Windows 95中FlushInstructionCache方法的实现,会发现它只是简单地返回一下就没了,看上去并没有做任何事。那么,为什么你还要调用它呢?

Because the act of calling it is the whole point. The control transfers implicit in calling a function suffice to flush the instruction cache on a Pentium. The function doesn’t have to do anything else; it is fact that you called a function that is important.

因为调用本身就是意义所在。通过调用这个函数,就可以隐式地在Pentium处理器上刷新指令缓存。函数本身不用做任何事,而调用这个方法本身才是最重要的。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

 剩余字数 ( Characters available )

Your comment will be available after auditing.
您的评论将在通过审核后显示。

Please DO NOT add any links in your comment, otherwise it would be identified as SPAM automatically and never be audited.
请不要在评论中插入任何链接,否则将被自动归类为垃圾评论,且永远不会被提交给博主进行复审。

*