Is there a cross platform way to tell if a tcl build is a 32-bit or 64-bit?
tcl_platform(wordsize) doesn't seem to be reliable as it reports 4 in
both cases. tcl_platform(pointerSize) reports 4 and 8 for 32-/64-bits, respectively. Is this the way to go?
Is there a cross platform way to tell if a tcl build is a 32-bit or 64-bit?
tcl_platform(wordsize) doesn't seem to be reliable as it reports 4 in
both cases. tcl_platform(pointerSize) reports 4 and 8 for 32-/64-bits, respectively. Is this the way to go?
Is there a cross platform way to tell if a tcl build is a 32-bit or 64-bit?
tcl_platform(wordsize) doesn't seem to be reliable as it reports 4 in
both cases. tcl_platform(pointerSize) reports 4 and 8 for 32-/64-bits, respectively. Is this the way to go?
On 9/14/2026 9:49 AM, saito wrote:
Is there a cross platform way to tell if a tcl build is a 32-bit or
64-bit?
tcl_platform(wordsize) doesn't seem to be reliable as it reports 4 in
both cases. tcl_platform(pointerSize) reports 4 and 8 for 32-/64-bits,
respectively. Is this the way to go?
Thanks to all for the replies. So the consensus is to use the
pointerSize attribute.
Am 14.09.26 um 22:09 schrieb saito:
On 9/14/2026 9:49 AM, saito wrote:
Is there a cross platform way to tell if a tcl build is a 32-bit or
64-bit?
tcl_platform(wordsize) doesn't seem to be reliable as it reports 4 in
both cases. tcl_platform(pointerSize) reports 4 and 8 for 32-/64-
bits, respectively. Is this the way to go?
Thanks to all for the replies. So the consensus is to use the
pointerSize attribute.
Use whatever you need.
That's also my question, what do you need this
information for?
https://www.tcl-lang.org/man/tcl/TclCmd/tclvars.html
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,142 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 93:08:38 |
| Calls: | 14,704 |
| Calls today: | 2 |
| Files: | 186,497 |
| D/L today: |
2,354 files (780M bytes) |
| Messages: | 2,551,657 |