📄 store_buff.c
字号:
/* ---------------------------------------------------------------------------
*
* DEMONSTRATION OF SPONTANEOUS FLUSHING OF STORE BUFFERS
* =====================================================
*
* Build 0x001 08.08.2002
--------------------------------------------------------------------------- */
#include <DoCPU.h>
#include "store_buff.h" // h-file is generated automatically
// by the make-file and contains definition of N_ITER,
// which stands for number of write iterations
main()
{
int *p;
int a, b;
int *buff;
// allocating memory
p = (int *) malloc(1*M);
// sleep, in order to hit exact time quantum
Sleep(100);
// call store_buf.xm
buff = DoCPU(&p);
// display measurement results
printf("%d",N_ITER);for(a = 0; a < 10; a++) printf("\t%d",buff[a]);
printf("\n");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -