📄 code.cache.size.make.new.bat
字号:
@ECHO OFF
IF #%1#==#MAKE_FOR# GOTO make_it
REM MAKE ALL
ECHO = = = ASSEMBLING THE EXAMPLE DEMONSTRATING HOW TO DETERMINE THE CODE CACHE SIZE = = =
ECHO Utility for the \"Program optimization technique\" book by Kris Kaspersky
ECHO @ECHO OFF > code.cache.size.run.bat
ECHO ECHO = = = Demonstrating how to determine code cache size = = = >> code.cache.size.run.bat
ECHO ECHO Utility for the \"Program optimization technique\" book by Kris Kaspersky >> code.cache.size.run.bat
ECHO ECHO N NOPs ...CLOCK... >> code.cache.size.run.bat
ECHO ECHO ------------------------------------------------------------------------- >> code.cache.size.run.bat
FOR %%A IN (2,4,8,16,32,64,128,256,512,1024,2048) DO CALL %0 MAKE_FOR %%A
ECHO DEL %%0 >> code.cache.size.run.bat
GOTO end
:make_it
ECHO /%0/%1/%2 *
SHIFT
ECHO CODE_SIZE EQU %1 > code.cache.size.mod
ECHO #define CODE_SIZE %1 > code.cache.size.h
TYPE code.cache.size.xm >> code.cache.size.mod
CALL clock.make.bat code.cache.size.c > NUL
DEL code.cache.size.mod
DEL code.cache.size.h
IF NOT EXIST code.cache.size.exe GOTO err
IF EXIST code.cache.size.%1.exe DEL code.cache.size.%1.exe
REN code.cache.size.exe code.cache.size.%1.exe
ECHO code.cache.size.%1.exe >> code.cache.size.run.bat
ECHO DEL code.cache.size.%1.exe >> code.cache.size.run.bat
GOTO end
:err
ECHO -ERR compilation error! for more details see code.cache.size.err
TYPE code.cache.size.err
EXIT
:end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -