Inline assembly is also sometimes needed when you have to, for instance, ensure that a particular set of instructions are in the same cache line, or otherwise mess around with memory maps.
内联汇编有时也是必须的,举例来说,当您需要确保特定指令集都在相同的缓存线上(否则就会浪费内存映像)时。
All modern CPUs must utilize local memory cache to minimize latency of fetching instructions and data from memory.
所有现代的CPU必须使用本地存储的缓存,将获取指令和数据的延迟降到最低。
This makes it very similar to caching operations, where blocks of instructions are moved from memory into a local fast cache memory for execution.
这使它与缓存操作非常类似,后者是将指令块从内存移动到本地快速缓存中执行。
应用推荐