请注意:本页内容发布于 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处理器上刷新指令缓存。函数本身不用做任何事,而调用这个方法本身才是最重要的。
远嚣 Comment