0

I am new to TCL and trying to dig the C code that runs TCL commands , I installed TCL in windows . Not able to find the C code .

Can anyone suggest me where can I get the C code ? or any links ?

2 Answers 2

5

For browsing, see here on core.tcl.tk which is a web view into the code repository. The directories you're most likely to want to look inside are generic (platform-independent code, most of Tcl) and win (Windows-platform code, build instructions). The other main directories there are unix (Unix-specific sources), mac (Mac-specific build system), library (Tcl library files; no C code) and doc (documentation in a format that you've probably never encountered before).

For code relating to a specific version of Tcl, see the Tcl file distribution area on SourceForge. Pick your version, download the exact sources you want. Note that they'll be laid out in virtually the same way as in the repository: look in generic and win to see the C code.

Sign up to request clarification or add additional context in comments.

2 Comments

How can I know which is the first (main) file ?
@user3103694: On Windows, that's win/tclAppInit.c, but that delegates most of the work to generic/tclMain.c (the function is called Tcl_MainEx). Assuming you're talking about tclsh, of course. When embedding Tcl, you don't use the main loop stuff (since that'd be in your own code).
1

You are new to Tcl and yet, you go for the C source code already? What is your goal? Are you trying to learn Tcl, or learn C? Any way, the source can be found here:

http://tcl.sourceforge.net/

1 Comment

I am seeing TCL code in library folder . Where can i see C files ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.