🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #62

Re: support for 'memory' command

#62
From: Ashok
Date: Fri, 16 Oct 2026 12:04
44 lines
2695 bytes
On Unix/MinGW

configure --enable-symbols=mem ....

With nmake,

nmake /f makefile.vc STATS=memdbg ....



On 10/16/2026 12:00 AM, Alan Grunwald wrote:
> 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: <11at3t2$392eb$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-mail
References: <11ar64t$2kpp9$1@dont-email.me>

Show 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: Ashok <apnmbx-public@yahoo.com>
Newsgroups: comp.lang.tcl
Subject: Re: support for 'memory' command
Date: Fri, 16 Oct 2026 17:34:50 +0530
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <11at3t2$392eb$1@dont-email.me>
References: <11ar64t$2kpp9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Oct 2026 12:04:51 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3443147"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/sL3ZjS+QmTz1L/NGCIG9U"; posting-host="bc2a2be1e866ad0c800b0ef6d83da604"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:FuEVoaFS+uzBAyb3XyzHC1zAUQw= sha256:7hm71EwgP7MWSHm+9hIc7tA1Me0rVKMzpLuhRBPrQaA=
	sha1:grvQvdsBsURJY+5brHdp8JphmFg= sha256:H6H1uLxwR57YxJZauubNYHt1jctke8Sm5ci+cEaxceo=
Content-Language: en-US
In-Reply-To: <11ar64t$2kpp9$1@dont-email.me>