Jump to content

Recommended Posts

Hello,


it is compiled code, it's a text format but we cannot read


purpose of tbc is to hide source code of some authors


But in some case we can dump it back, for example if the codes were written in body of namespace or the codes is a part of a class (object-orient)


otherwise just the guys wrote tbcload and procomp know how to read tbc


Share this post


Link to post
Share on other sites

Hello


as i know there is no available tool to convert tbc file to tcl file


above guide just help you to be able to know what the tbc file do by dumping its detail actions


 


to dump a procedure explicitly,  open command window and type in:


dump procname


 


if the procedure was pre-compiled, then nothing resulted


it (procedure) can be dumped if it is inside a namespace, an object or nested in a command (generated from a command)


Share this post


Link to post
Share on other sites

I am sorry because I don't know such a software.

But I can debug it to know how it acts. Because it will invoke other tcl commands, by tracing them we may know what's happening.

unfortunately, this is a terrible work, with tons of output need to be parsed

Share this post


Link to post
Share on other sites
On ‎4‎/‎4‎/‎2014 at 12:17 PM, tinh said:

yes, you can get tcl codes of each compiled procedure by using

 

 

info args procname

 

 

 

info body procname

 

I have tried this way but I haven't got the body if code instead it is throwing me an error saying "compiled -- no source code available"

 

Is there any other turnaround ?

 

 

Share this post


Link to post
Share on other sites

Compiled script cannot be dumped by that way

Commands inside body of switch, [ ] ,... are exposed and can be traced, but no way to trace commands in level 1 of a proc because they are converted to bytecode

Share this post


Link to post
Share on other sites

Tinh, 

    I have trying to get TclPro installed but the link isn't working anymore. Do you knwo weh i can download it and do you have an example of how to compile a script. Thank you for any help

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...