⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memcpy.optimize.c

📁 代码优化,有效使用内存,透视优化技术,对比优化方法,如果你在追求代码效率的最大化,该资源你不能不读.
💻 C
字号:
/* ---------------------------------------------------------------------------
 * @
 *							MEMCPY OPTIMIZATION
 *							==================
 *
 * Build 0x001	24.06.2002
--------------------------------------------------------------------------- */
// configuration
#define BLOCK_SIZE		(8*M)				// size of the processed block
#define subBLOCK_SIZE	(L1_CACHE_SIZE/2)	// size of the sub-block
#define BRUST_LEN		(32)				// size of the read burst cycle
											// 32 bytes is the optimal choice
											// for all processors, although
											// to achieve maximum performance
											// it is necessary to determine this
											// value exactly

#include <DoCPU.h>
main()
{

	int *p1, *p2;
	int a, b, tmp=0;

	// TITLE
	PRINT("= = = demonstration of the optimized version of memcpy = = =\n");
	PRINT_TITLE;

	// 恹溴

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -