Overview
| Artifact ID: | a5d515486083736511eb8e887d11fc6f61ca6fb2 |
|---|---|
| Ticket: | 1cc44617e2b4ed0a29f75762d45fe46388260f74
Mechanism with 64 bit support in tcl.h does not work outside of core |
| User & Date: | anonymous on 2017-03-24 15:02:56 |
Changes
- icomment:
I don't have a 64 bit architecture, so I cannot test. On my 32 bit machine indeed the mechanism works. But I refer to verbal statements: <ol> <li><p> I asked Francois Vogel - he is compiling under Windows on a 64 bit architecture - whether the constant TCL_WIDE_INT_IS_LONG is defined, and he tested with: <verbatim> #ifdef TCL_WIDE_INT_IS_LONG # error here #endif </verbatim> His response was that the compiler accepted, with other words, TCL_WIDE_INT_IS_LONG is not defined, although he has a 64 bit machine. </li> <li><p> See <a href="http://core.tcl.tk/tk/info/cd374e7d05710373">[cd374e7d]</a> and <a href="http://core.tcl.tk/tk/info/f80552981cbc2f84">[f8055298]</a>, the author says "TCL_WIDE_INT_IS_LONG doesn't behave as expected on WIN64". I conclude that TCL_WIDE_INT_IS_LONG wasn't set on his 64 bit machine. </li> </ol> What's wrong with my analysis of tcl.h, due to my analysis it cannot work. Certainly it works if TCL_WIDE_INT_IS_LONG or TCL_WIDE_INT_TYPE is already properly defined by call of compiler - <pre>gcc -DTCL_WIDE_INT_IS_LONG=1</pre> - is it possible that in your test environment the makefile contains this definition?. Outside of Tcl core, when TCL_WIDE_INT_IS_LONG is not predefined, the mechanism cannot work. <p> If you remove -DTCL_WIDE_INT_IS_LONG=1, what happens now? <p> If it works although you have removed -DTCL_WIDE_INT_IS_LONG=1, in which line of tcl.h the correct setup (TCL_WIDE_INT_IS_LONG=1) will be done?
- login: "anonymous"
- mimetype: "text/html"