🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #65

Re: support for 'memory' command

#65
From: Alan Grunwald
Date: Fri, 16 Oct 2026 16:47
69 lines
3788 bytes
On 16/10/2026 13:04, Ashok wrote:
> 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
> 

Thanks Ashok.

tl;dr

For your info, after MANY years of asking how to compile Tcl on windows 
- I managed the feat once a few years ago but never managed to repeat it 
again without help - the hard disk on may desktop packed up a few months 
back.

Dell weren't that interested in supplying a replacement 1TB disk - the 
smallest that appears on their site is 16TB and cost more than the 
entire machine. I went out and bought something online for a very 
reasonable price, but something went wrong when I was trying to 
re-install Windows and after a week of to-and-fro, Dell decided that my 
best bet was to let them have the machine for a month or so. at that 
point I decided to put Linux on the desktop as well as the laptop and, 
to be honest, I haven't looked back since.

Thanks anyway for the nmake instructions, particularly on behalf of any 
Windows users who stumble upon this question in the future.


Alan
Technical Details
Message-ID: <11atkee$3f4jj$2@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> <11at3t2$392eb$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: Alan Grunwald <nospam.nurdglaw@gmail.com>
Newsgroups: comp.lang.tcl
Subject: Re: support for 'memory' command
Date: Fri, 16 Oct 2026 17:47:10 +0100
Organization: A noiseless patient Spider
Lines: 69
Message-ID: <11atkee$3f4jj$2@dont-email.me>
References: <11ar64t$2kpp9$1@dont-email.me> <11at3t2$392eb$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 16:47:11 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3641971"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX196mixybJDFG3HjjISqKhHg7Zx7pCQ5xFA="; posting-host="15479b1f8bfa5c3dc0269f274d972b20"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Ee2rQ0sjxPfomv1XkbjZnm7rghI= sha256:4yUPh1qq6y4D50jIjaEIjA7Xwy9Nz7cPUhseb0XGDD8=
	sha1:5suojTPGa/vMOPhbWVjSpD3GuhY= sha256:lTI93vIpXeMdv0LFQzq7wDm4+vcRII8AY7ZxGWPafzs=
In-Reply-To: <11at3t2$392eb$1@dont-email.me>
Content-Language: en-US