code.cache.size.c

来自「代码优化,有效使用内存,透视优化技术,对比优化方法,如果你在追求代码效率的最大化」· C语言 代码 · 共 28 行

C
28
字号
/*----------------------------------------------------------------------------
 *						
 *						THE EXAMPLE DEMONSTRATES DEPENDENCE:
 *				PERFORMANCE (SIZE OF THE PROCESSED BLOCK OF CODE)
 *				======================================================
 *
 * Build 0x01 31.07.02
--------------------------------------------------------------------------- */

#include "code.cache.size.h"		// h-file is automatically generated
									// by make-file and contains the value
									// of the CODE_SIZE macro

#include <DoCPU.h>

main()
{
	int		a;

	// STARTING POINT OF MEASUREMENT OF THE EXECUTION TIME OF THE VLOCK OF CODE OF THE CODE_SIZE SIZE
	A_BEGIN(1);
		// calling the function containing CODE_SIZE NOP machine commands
		DoCPU(&a);
	A_END(1);	// end of measurement

	// console output of the result
	printf("%03d\t %d\n", CODE_SIZE, Ax_GET(1));
}

⌨️ 快捷键说明

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