回复 克洛诺斯V :
就发一段CNC源代码你看看,只是SYS设置的
<?xml version="1.0" encoding="UTF-8"?>
<?ARNC0 Version="1.33.1"?>
<LANGS defaultLangId="1" defaultDataLangId="3">
<!-- Command queue configuration (global setting - applies to all langauge interpreters) -->
<CMDQUEUE BufferSize="15" />
<!-- Memory configuration:
<MEM
LimitMB="<max memory usage>" (if not specified, or set to "0", then all available system mem can be used)
LimitPercent="<max memory usage>%" (percentage of free system memory (at startup) to limit the interpreter to)
ReserveMB="<reserve memory size>" (if not specified then a small default amount of memory is reserved)
-->
<MEM ReserveMB="5" LimitPercent="80%" /> <!-- Execution configuration:
<EXEC
InstrBurstBG="<number of opcodes>" How many opcodes to execute in one burst
CycleBurstBG="<max cycle burst length>" Limited number of consecutive execution cycles allowed for interpreter (0=off)
Stack="<size in bytes>" Main execution stack size
MinorStack="<size in bytes>" Default size for minor execution thread stacks, or explicitly:
CStack="<cyclic thread stack size>"
PStack="<path-synch thread stack size>"
EStack="<eval thread stack size>"
-->
<EXEC InstrBurstBG="50" CycleBurstBG="0" Stack="16384" MinorStack="2048" EStack="1024" /> <!-- Loader configuration: (how many lines to read and parse at once)
<LOAD
ReadLineBurstMax="<num_lines>" (Number of lines to read from the input buffer at once when loader has full CPU - e.g. during PRELOAD)
ReadLineBurstMin="<num_lines>" (Number of lines to read from the input buffer at once when loader is sharing CPU with execution)
ParseLineBurstMax="<num_lines>" (Number of lines to parse at once when loader has full CPU - e.g. during PRELOAD)
ParseLineBurstMin="<num_lines>" (Number of lines to parse at once when loader is sharing CPU with execution)
-->
<LOAD ReadLineBurstMax="100" ReadLineBurstMin="20"
ParseLineBurstMax="10" ParseLineBurstMin="2"
RuntimeIOBlocking="No" /> <!-- quiet startup: disable info messages (applied after loading this config file - all messages enabled until then) -->
<DISABLE_MSG>
15238 <!-- INFO: "Interpreter lib initialised" -->
15336 <!-- INFO: "Loading interpreter config module" -->
15337 <!-- INFO: "Loading interpreter config file" -->
15666 <!-- INFO: "Precompiling language templates" -->
<!-- 15240 INFO: "Program loaded" (from LANG_INCLUDE) -->
<!-- 15778 WARN: "Logging file device does not exist" -->