Article View: comp.lang.tcl
Article #59support for 'memory' command
From: Alan Grunwald
Date: Thu, 15 Oct 2026 18:30
Date: Thu, 15 Oct 2026 18:30
32 lines
2348 bytes
2348 bytes
Following my recent query about reference counting (thanks again for the
responses), I feel that I should have access to the 'memory' command,
which I see means that I need to define TCL_MEM_DEBUG at compile time.
That immediately raises two questions:
i) Exactly how do I do that?
I expect that I need to specify something when I run configure.
Maybe something like
configure --define=TCL_MEM_DEBUG --prefix=<wherever>
but I can't find what exactly.
ii) Will I need to recompile all the binary extensions I use?
If not, I plan to build and install Tcl with the symbol defined,
rename tclsh9.1 to tclsh-mem9.1 with a tclsh-mem softlink pointing
to it, then re-install a "standard" Tcl in the same directory with a
tclsh softlink. This would let me do tclsh to run a "standard" shell
and tclsh-mem to run a shell that supports 'memory'.
If I would need to recompile the binary extensions, then I guess I
need two parallel directories. I suppose I can get away with putting
the tclsh-mem softlink in the "standard" directory and only have a
single entry in PATH.
Many thanks
Alan
Technical Details
Message-ID:
<11ar64t$2kpp9$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Alan Grunwald <nospam.nurdglaw@gmail.com> Newsgroups: comp.lang.tcl Subject: support for 'memory' command Date: Thu, 15 Oct 2026 19:30:53 +0100 Organization: A noiseless patient Spider Lines: 32 Message-ID: <11ar64t$2kpp9$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 15 Oct 2026 18:30:54 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2778921"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19r4B+ff3A7rSeyL4RGg+Uk8rh0QRIPMM8="; posting-host="28515c1509e0043eb51f50841e8f0c4f" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:ZyQ+cNZ0DRTG20uyyas5B2E+A8s= sha256:UFTGnZx8Qkss0R6MnYLpGqDtqNwrPWaQp5EyegW48EE= sha1:Nc/5g1895X5a+ZB3voozaHx4RPw= sha256:XLFcIw2aRPdLgrQcPqM+fuXQGr5wXGcn19Q1eWktZ4I= Content-Language: en-US