Overview
| Artifact ID: | 7c3d9482b052354d977fe2128595063099173fbe43b6b1de0b56504585cb9a49 |
|---|---|
| Ticket: | b8da19fd1658fed8e370a4f9b458e2c189022135
bad stack depth computations: is 0, should be 1 |
| User & Date: | sebres on 2018-12-04 12:09:23 |
Changes
- icomment:
<blockquote><i>> We have to use "1" instead of "0" as Bytes filed.. WHY ?</i></blockquote> Because the byte of the instruction-command self is counted also, numBytes equals all bytes reserved for a command in byte-code (including command instruction and operand bytes also). Thus all single-byte instructions have numBytes = 1. <blockquote><i>> Is there any document for "tclInstructionTable"? if yes please share</i></blockquote> For example take a look in [./artifact?name=419ef3627fd0fd88&ln=830-835|tclCompile.h] and [./artifact?name=419ef3627fd0fd88&ln=863-874|declaration of InstructionDesc type]. Also note that 8.6 has additional handling round about byte-code/instructions compilation process: byte-code and compaction optimizations (see tclOptimize.c/tclCompile.c), command search (emit of instruction relative INST_START_CMD), capturing the inner context (e. g. call stack in error case) as well as disassembling of the byte-code, etc. Because byte-code compilation is merely an internal API, the source code will be your best friend there. Also note that some instructions may be a bit incompatible between 8.4 and 8.6. To have some obsolete instructions (like INST_CALL_BUILTIN_FUNC1, INST_CALL_FUNC1) you must also compile Tcl using directive TCL_SUPPORT_84_BYTECODE=1.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Pending"