Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9280811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:57:58+00:00 2026-06-18T17:57:58+00:00

this is a strange question and i searched but couldn’t find any satisfactory answer.

  • 0

this is a strange question and i searched but couldn’t find any satisfactory answer.

I have a compiled tcl file i.e. a .tbc file. So is there a way to convert this .tbc file back to .tcl file.

I read here and someone mentioned about ::tcl_traceCompile and said this could be used to disassemble the .tbc file. But being a novice tcl user i am not sure if this is possible, or to say more, how exactly to use it.

Though i know that tcl compiler doesn’t compile all the statements and so these statements can be easily seen in .tbc file but can we get the whole tcl back from .tbc file.

Any comment would be great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T17:57:59+00:00Added an answer on June 18, 2026 at 5:57 pm

    No, or at least not without a lot of work; you’re doing something that quite a bit of effort was put in to prevent (the TBC format is intended for protecting commercial code from prying eyes).


    The TBC file format is an encoding of Tcl’s bytecode, which is not normally saved at all; the TBC stands for Tcl ByteCode. The TBC format data is only produced by one tool, the commercial “Tcl Compiler” (originally written by either Sun or Scriptics; the tool dates from about the time of the transition), which really is a leveraging of the built-in compiler that every Tcl system has together with some serialization code. It also strips as much of the original source code away as possible. The encoding used is unpleasant; you want to avoid writing your own loader of it if you can, and instead use the tbcload extension to do the work.

    You’ll then need to use it with a custom build of Tcl that disables a few defensive checks so that you can disassemble the loaded code with the tcl::unsupported::disassemble command (which normally refuses to take apart anything coming from tbcload); that command exists from Tcl 8.5 onwards. After that, you’ll have to piece together what the code is doing from the bytecodes; I’m not aware of any tools for doing that at all, but the bytecodes are mostly fairly high level so it’s not too difficult for small pieces of code.

    There’s no manual page for disassemble; it’s formally unsupported after all! However, that wiki page I linked to should cover most of the things you need to get started.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have searched some on this site but couldn't find a right answer to
Strange, but I can't find a duplicate for this question. I have a superclass
I did a number of searches, but couldn't find an answer to this question.
I have searched on SO for similar questions but didn't find any.So forgive me
I realise this is a strange question perhaps, but if say I have a
OK, I agree this is a strange question, but bear with me. I have
Strange Question i guess but i have this bit of code in my page...
This may sound like a strange question, but hopefully there is an answer out
Quick and strange question: I have an object (in this example is small but
This is a little bit of a strange question, but I have a bunch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.