Re: Tcl bytecode



suchenwi wrote:
With TclDevKit ($$) you can save bytecodes to a file (and load them with tbcload). However, their purpose is to obfuscate code, and loading them is slower than parsing genuine Tcl source files :)
For open source, I find it most suitable that scripts are openly readable, and editable in case of problems.


But TDK does translation to _some_ bytecode which isn't the same bytecode which Tcl interpreter executes (if I understeand correctly TDK compiler idea, of course).

I mean to save Tcl bytecode as it's represented just after byte-compilation - when script is loaded into interpreter.
Why write external tools to do such a thing, when Tcl Core (interpreter) already (while script execution) has such a bytecode in memory?


--
Pozdrawiam! (Regards!)
Googie
.



Relevant Pages

  • Re: Tcl bytecode
    ... However, their purpose is to obfuscate code, and loading them is slower than parsing genuine Tcl source files:) ... However, TDK has to make the bytecode portable, so that is part of the extra translation that doesn't make this loader faster. ... Other languages have more compile overhead, so it makes more sense there to precompile. ...
    (comp.lang.tcl)
  • Tcl thread local storage memory problem
    ... I am working on an application that originally uses one thread, TCL ... and the C-library to initialize an interpreter and executing standard ... InitializeThreadLocalStorage(); /*If no threads, initialize ... able to get Tcl thread local storage ...
    (comp.lang.tcl)
  • Re: File data format
    ... This is how I always look at data processing with Tcl: ... then let the very effecient tcl interpreter do the parsing. ... Create procs that match the data keys. ... date, commit, and compile, that matched the same signature, then your ...
    (comp.lang.tcl)
  • Re: No argv, argc for worker thread
    ... I expected that a Tcl interpreter started in any manner would accept options ... This is how the interpreter works with command line options ... a "main" script processes command line ...
    (comp.lang.tcl)
  • Re: Tcl/TK is indeed dying
    ... A fat Tcl interpreter has impact to all wanting to see Tcl linked to ... other software and embedded in hardware, because fatness make it less ...
    (comp.lang.tcl)