简体   繁体   English

哪个文件配置Windows Embedded Compact 7.0上的缓存?

[英]Which file configures caching on Windows Embedded Compact 7.0?

Which file configures caching on Windows Embedded Compact 7.0? 哪个文件配置Windows Embedded Compact 7.0上的缓存?

(For example, on VxWorks I can modify OS caching settings in SysLib.c) (例如,在VxWorks上,我可以在SysLib.c中修改OS缓存设置)

How do I turn memory caching off? 如何关闭内存缓存?

What do you mean with "turning caching off"? “关闭缓存”是什么意思? If you just need to disable caching for specific memory blocks you allocate then you can use the PAGE_NOCACHE flag of VirtualAlloc (or implement a custom heap on top of pages allocates in this way if you need small blocks). 如果只需要为分配的特定内存块禁用缓存,则可以使用VirtualAlloc的PAGE_NOCACHE标志(或者,如果需要小块,则可以通过这种方式在页面顶部实现自定义堆)。 If you need to disable cache for the whole system you need to modify the BSP and, in particular, the startup part and the cache flushing functions. 如果需要禁用整个系统的缓存,则需要修改BSP,尤其是启动部分和缓存刷新功能。 In this way you should be able to disable L2 caching. 这样,您应该能够禁用L2缓存。 On some architectures L1 cache is managed by the kernel (ex: on ARM), so no way to disable it easily. 在某些体系结构上,L1缓存由内核管理(例如:在ARM上),因此无法轻松禁用它。 But why do you want to disable caching in the whole OS? 但是,为什么要在整个操作系统中禁用缓存?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 QueryPerformanceCounter()测试Windows Embedded Compact 7 - QueryPerformanceCounter() Test for Windows Embedded Compact 7 Windows Embedded Compact 2013-初始应用重点 - Windows Embedded Compact 2013 - Initial Application Focus 意外的 IConnectionPointImpl::Unadvise 调用 Windows Embedded Compact 7 - Unexpected IConnectionPointImpl::Unadvise call on Windows Embedded Compact 7 如何将Windows Embedded Compact 7 DLL移植到Windows CE 5.0 / 6.0? - How to Port Windows Embedded Compact 7 DLL to Windows CE 5.0 / 6.0? Windows 7 嵌入式 - 以编程方式禁用磁盘缓存: - Windows 7 Embedded - Disable Disk Caching Programmatically: 如何在“ Windows Embedded的XAML(Compact 2013)”中切换图像 - How do I switch an image in “XAML for Windows Embedded (Compact 2013)” 禁用Windows XP文件缓存 - Disable Windows XP File Caching 在“适用于Windows Embedded的XAML(Compact 2013)”项目中获取图像的可靠源URI。 - Get robust source URIs for Images in “XAML for Windows Embedded (Compact 2013)” projects CryptUnProtectData() 在 Windows 7 嵌入式 COMPACT 上返回 ERROR_INSUFFICIENT_BUFFER(122) 错误 - CryptUnProtectData() returns ERROR_INSUFFICIENT_BUFFER(122) error on Windows 7 EMBEDDED COMPACT 用于 Windows 上的 OpenCV 应用的紧凑型构建 - Compact build for OpenCV applications on Windows
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM