global.c
来自「analog device vdsp branch prediction tut」· C语言 代码 · 共 19 行
C
19 行
#include <cycle_count.h>
#include "global.h"
/*
const char data[] =
"This example demonstrates how Profile-Guided Optimization can be "
"affected by dual-core applications. This text will be processed "
"in two different ways, one by each core, but the code for both "
"versions resides in the same function, conditionally compiled. "
"PGO has to use session IDs to indicate which version of the file "
"is being profiled."
;
*/
volatile int v_nc, v_nw, v_nl; /* counts for Core A (word count) */
volatile int v_nAZ, v_naz, v_nx; /* counts for Core B (upper/lower) */
volatile bool core_b_finished = false;
volatile cycle_t v_final_count;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?