Skip to content
Tcl Source Code Artifact [97d40d9246]
Login

Artifact [97d40d9246]

Artifact 97d40d924694aeec9f647013b3eabb29ec4ef6d0:


IMPORTANT MODS AND INCOMPATS

* changes to compiler and engine: old .tbc will not run, except with a
  "sufficiently clever" tbcload. The compilefr and tbcload will probably
  need some work to adapt to the changes. This branch completely ignores
  these issues.

* tclAssembly.c and related are gone; it was an added burden adapting them
  while modifying the bytecodes and tebc, the decision was taken to remove
  it and do the work again "at the end"

* INCOMPATIBILITY - no more cmdCount
  There is no more [info cmdcount], or cmdCount based interpreter limits

* the compiler was simplified a bit, removing quite a few "premature"
  optimizations; these are now handled by the optimizer. In particular: all
  instructions are issued in the 4-byte variant (so that the optimizer can
  use the extra space), break/continue are not optimized to jumps until
  later, etc.

* there is a new optimizer that produces better bytecodes, especially in
  the handling of logic and exceptions. The optimizer itself is extremely
  suboptimal, the way it works can definitely be improved.