Debian Codegraph @

embedded/www/files/critcl.html

raw
1 <!DOCTYPE html><html><head>
2 <meta charset="UTF-8">
3 <meta name="viewport" content="width=device-width, initial-scale=1">
4 <title>critcl - C Runtime In Tcl (CriTcl)</title>
5 <style type="text/css"><!--
6 HTML {
7 background: #FFFFFF;
8 color: black;
9 }
10 BODY {
11 background: #FFFFFF;
12 color: black;
13 }
14 DIV.doctools {
15 margin-left: 10%;
16 margin-right: 10%;
17 }
18 DIV.doctools H1,DIV.doctools H2 {
19 margin-left: -5%;
20 }
21 H1, H2, H3, H4 {
22 margin-top: 1em;
23 font-family: sans-serif;
24 font-size: large;
25 color: #005A9C;
26 background: transparent;
27 text-align: left;
28 }
29 H1.doctools_title {
30 text-align: center;
31 }
32 UL,OL {
33 margin-right: 0em;
34 margin-top: 3pt;
35 margin-bottom: 3pt;
36 }
37 UL LI {
38 list-style: disc;
39 }
40 OL LI {
41 list-style: decimal;
42 }
43 DT {
44 padding-top: 1ex;
45 }
46 UL.doctools_toc,UL.doctools_toc UL, UL.doctools_toc UL UL {
47 font: normal 12pt/14pt sans-serif;
48 list-style: none;
49 }
50 LI.doctools_section, LI.doctools_subsection {
51 list-style: none;
52 margin-left: 0em;
53 text-indent: 0em;
54 padding: 0em;
55 }
56 PRE {
57 display: block;
58 font-family: monospace;
59 white-space: pre;
60 margin: 0%;
61 padding-top: 0.5ex;
62 padding-bottom: 0.5ex;
63 padding-left: 1ex;
64 padding-right: 1ex;
65 width: 100%;
66 }
67 PRE.doctools_example {
68 color: black;
69 background: #f5dcb3;
70 border: 1px solid black;
71 }
72 UL.doctools_requirements LI, UL.doctools_syntax LI {
73 list-style: none;
74 margin-left: 0em;
75 text-indent: 0em;
76 padding: 0em;
77 }
78 DIV.doctools_synopsis {
79 color: black;
80 background: #80ffff;
81 border: 1px solid black;
82 font-family: serif;
83 margin-top: 1em;
84 margin-bottom: 1em;
85 }
86 UL.doctools_syntax {
87 margin-top: 1em;
88 border-top: 1px solid black;
89 }
90 UL.doctools_requirements {
91 margin-bottom: 1em;
92 border-bottom: 1px solid black;
93 }
94 --></style>
95 </head>
96 <!-- Generated from file 'critcl.man' by tcllib/doctools with format 'html'
97 -->
98 <!-- Copyright &amp;copy; Jean-Claude Wippler -- Copyright &amp;copy; Steve Landers -- Copyright &amp;copy; 2011-2024 Andreas Kupries
99 -->
100 <!-- critcl.n
101 -->
102 <body><hr> [
103 <a href="../toc.html">Table Of Contents</a>
104 &#124; <a href="../index.html">Keyword Index</a>
105 ] <hr>
106 <div class="doctools">
107 <h1 class="doctools_title">critcl(n) 3.3.1 doc &quot;C Runtime In Tcl (CriTcl)&quot;</h1>
108 <div id="name" class="doctools_section"><h2><a name="name">Name</a></h2>
109 <p>critcl - Introduction To CriTcl</p>
110 </div>
111 <div id="toc" class="doctools_section"><h2><a name="toc">Table Of Contents</a></h2>
112 <ul class="doctools_toc">
113 <li class="doctools_section"><a href="#toc">Table Of Contents</a></li>
114 <li class="doctools_section"><a href="#section1">Description</a></li>
115 <li class="doctools_section"><a href="#section2">History &amp; Motivation</a></li>
116 <li class="doctools_section"><a href="#section3">Overview</a></li>
117 <li class="doctools_section"><a href="#section4">Known Users</a></li>
118 <li class="doctools_section"><a href="#section5">Tutorials - Practical Study - To Learn</a></li>
119 <li class="doctools_section"><a href="#section6">Explanations - Theoretical Knowledge - To Understand</a></li>
120 <li class="doctools_section"><a href="#section7">How-To Guides - Practical Work - To Solve Problems</a></li>
121 <li class="doctools_section"><a href="#section8">References - Theoretical Work - To Gain Knowlegde</a></li>
122 <li class="doctools_section"><a href="#section9">Authors</a></li>
123 <li class="doctools_section"><a href="#section10">Bugs, Ideas, Feedback</a></li>
124 <li class="doctools_section"><a href="#keywords">Keywords</a></li>
125 <li class="doctools_section"><a href="#category">Category</a></li>
126 <li class="doctools_section"><a href="#copyright">Copyright</a></li>
127 </ul>
128 </div>
129 <div id="section1" class="doctools_section"><h2><a name="section1">Description</a></h2>
130 <p>Be welcome to the <i class="term">C Runtime In Tcl</i> (short: <i class="term">CriTcl</i>), a system for embedding and using C
131 code from within <a href="http://core.tcl-lang.org/tcl">Tcl</a> scripts.</p>
132 <p>Adding C code to <a href="http://core.tcl-lang.org/tcl">Tcl</a>/<a href="http://core.tcl-lang.org/tk">Tk</a> has never been easier.</p>
133 <p>Improve performance by rewriting the performance bottlenecks in C.</p>
134 <p>Import the functionality of shared libraries into Tcl scripts.</p>
135 </div>
136 <div id="section2" class="doctools_section"><h2><a name="section2">History &amp; Motivation</a></h2>
137 <p><i class="term">CriTcl</i> started life as an experiment by <i class="term">Jean-Claude Wippler</i> and was a self-contained
138 Tcl package to build C code into a Tcl/Tk extension on the fly. It was somewhat inspired
139 by Brian Ingerson's <i class="term">Inline</i> for <i class="term">Perl</i>, but is considerably more lightweight.</p>
140 <p>It is for the last 5% to 10% when pure Tcl, which does go a long way, is not
141 sufficient anymore. I.e. for</p>
142 <ol class="doctools_enumerated">
143 <li><p>when the last bits of performance are needed,</p></li>
144 <li><p>access to 3rd party libraries,</p></li>
145 <li><p>hiding critical pieces of your library or application, and</p></li>
146 <li><p>simply needing features provided only by C.</p></li>
147 </ol>
148 </div>
149 <div id="section3" class="doctools_section"><h2><a name="section3">Overview</a></h2>
150 <p>To make the reader's topics of interest easy to find this documentation is roughly
151 organized by <a href="https://documentation.divio.com/">Quadrants</a>, i.e.</p>
152 <pre class="doctools_example">
153 | Study | Work
154 ----------- + --------------- + -----------------
155 Practical | <span class="sectref"><a href="#section5">Tutorials</a></span> | <span class="sectref"><a href="#section7">How-To Guides</a></span>
156 | (Learning) | (Problem solving)
157 ----------- + --------------- + -----------------
158 Theoretical | <span class="sectref"><a href="#section6">Explanations</a></span> | <span class="sectref"><a href="#section8">References</a></span>
159 | (Understanding) | (Knowledge)
160 </pre>
161 <p><em>Note</em>: At this point in time the documentation consists mainly of references, and
162 a few how-to guides. Tutorials and Explanations are in need of expansion, this is planned.</p>
163 </div>
164 <div id="section4" class="doctools_section"><h2><a name="section4">Known Users</a></h2>
165 <ul class="doctools_itemized">
166 <li><p><a href="https://core.tcl-lang.org/akupries/ankh">AnKH</a></p></li>
167 <li><p><a href="https://core.tcl.tk/akupries/tclyaml">TclYAML</a></p></li>
168 <li><p><a href="https://github.com/andreas-kupries/tcl-linenoise">Linenoise</a></p></li>
169 <li><p><a href="https://core.tcl.tk/akupries/kinetcl">KineTcl</a></p></li>
170 <li><p><a href="https://chiselapp.com/user/andreas_kupries/repository/inotify">Inotify</a></p></li>
171 <li><p><a href="https://core.tcl.tk/akupries/marpa">TclMarpa</a></p></li>
172 <li><p><a href="https://core.tcl.tk/akupries/crimp">CRIMP</a></p></li>
173 </ul>
174 </div>
175 <div id="section5" class="doctools_section"><h2><a name="section5">Tutorials - Practical Study - To Learn</a></h2>
176 <p>This section is currently empty.</p>
177 </div>
178 <div id="section6" class="doctools_section"><h2><a name="section6">Explanations - Theoretical Knowledge - To Understand</a></h2>
179 <p>This section is currently empty.</p>
180 </div>
181 <div id="section7" class="doctools_section"><h2><a name="section7">How-To Guides - Practical Work - To Solve Problems</a></h2>
182 <ol class="doctools_enumerated">
183 <li><p><i class="term"><a href="critcl_howto_sources.html">How To Get The CriTcl Sources</a></i>.</p></li>
184 <li><p><i class="term"><a href="critcl_howto_install.html">How To Install CriTcl</a></i>.</p></li>
185 <li><p><i class="term"><a href="critcl_howto_use.html">How To Use CriTcl</a></i> - A light introduction through examples.</p></li>
186 <li><p><em>NEW</em>: <i class="term"><a href="critcl_tcl9.html">How To Adapt Critcl Packages for Tcl 9</a></i>.</p></li>
187 </ol>
188 </div>
189 <div id="section8" class="doctools_section"><h2><a name="section8">References - Theoretical Work - To Gain Knowlegde</a></h2>
190 <ol class="doctools_enumerated">
191 <li><p><i class="term"><a href="critcl_license.html">The CriTcl License</a></i></p></li>
192 <li><p><i class="term"><a href="critcl_changes.html">CriTcl Releases &amp; Changes</a></i></p></li>
193 <li><p><i class="term"><a href="critcl_application.html">CriTcl Application Reference</a></i></p></li>
194 <li><p><i class="term"><a href="critcl_package.html">CriTcl Package Reference</a></i></p></li>
195 <li><p><i class="term"><a href="critcl_cproc.html">CriTcl cproc Type Reference</a></i></p></li>
196 <li><p><i class="term"><a href="critcl_util.html">CriTcl - Utilities</a></i></p></li>
197 <li><p><i class="term"><a href="critcl_cutil.html">CriTcl - C-level Utilities</a></i></p></li>
198 <li><p><i class="term"><a href="critcl_callback.html">CriTcl - C-level Callback Utilities</a></i></p></li>
199 <li><p><i class="term"><a href="critcl_enum.html">CriTcl - Wrap Support - String/Integer mapping</a></i></p></li>
200 <li><p><i class="term"><a href="critcl_bitmap.html">CriTcl - Wrap Support - Bitset en- and decoding</a></i></p></li>
201 <li><p><i class="term"><a href="critcl_emap.html">CriTcl - Wrap Support - Enum en- and decoding</a></i></p></li>
202 <li><p><i class="term"><a href="critcl_literals.html">CriTcl - Code Gen - Constant string pools</a></i></p></li>
203 <li><p><i class="term"><a href="critcl_iassoc.html">CriTcl - Code Gen - Tcl Interp Associations</a></i></p></li>
204 <li><p><i class="term"><a href="critcl_class.html">CriTcl - Code Gen - C Classes</a></i></p></li>
205 <li><p><i class="term"><a href="critcl_application_package.html">CriTcl Application Package Reference</a></i></p></li>
206 <li><p><i class="term"><a href="critcl_devguide.html">Guide To The CriTcl Internals</a></i></p></li>
207 </ol>
208 </div>
209 <div id="section9" class="doctools_section"><h2><a name="section9">Authors</a></h2>
210 <p>Jean Claude Wippler, Steve Landers, Andreas Kupries</p>
211 </div>
212 <div id="section10" class="doctools_section"><h2><a name="section10">Bugs, Ideas, Feedback</a></h2>
213 <p>This document, and the package it describes, will undoubtedly contain
214 bugs and other problems.
215 Please report them at <a href="https://github.com/andreas-kupries/critcl/issues">https://github.com/andreas-kupries/critcl/issues</a>.
216 Ideas for enhancements you may have for either package, application,
217 and/or the documentation are also very welcome and should be reported
218 at <a href="https://github.com/andreas-kupries/critcl/issues">https://github.com/andreas-kupries/critcl/issues</a> as well.</p>
219 </div>
220 <div id="keywords" class="doctools_section"><h2><a name="keywords">Keywords</a></h2>
221 <p><a href="../index.html#c_code">C code</a>, <a href="../index.html#embedded_c_code">Embedded C Code</a>, <a href="../index.html#calling_c_code_from_tcl">calling C code from Tcl</a>, <a href="../index.html#code_generator">code generator</a>, <a href="../index.html#compile_run">compile &amp; run</a>, <a href="../index.html#compiler">compiler</a>, <a href="../index.html#dynamic_code_generation">dynamic code generation</a>, <a href="../index.html#dynamic_compilation">dynamic compilation</a>, <a href="../index.html#generate_package">generate package</a>, <a href="../index.html#linker">linker</a>, <a href="../index.html#on_demand_compilation">on demand compilation</a>, <a href="../index.html#on_the_fly_compilation">on-the-fly compilation</a></p>
222 </div>
223 <div id="category" class="doctools_section"><h2><a name="category">Category</a></h2>
224 <p>Glueing/Embedded C code</p>
225 </div>
226 <div id="copyright" class="doctools_section"><h2><a name="copyright">Copyright</a></h2>
227 <p>Copyright &copy; Jean-Claude Wippler<br>
228 Copyright &copy; Steve Landers<br>
229 Copyright &copy; 2011-2024 Andreas Kupries</p>
230 </div>
231 </div></body></html>