Am 16.05.16 um 11:37 schrieb René J. V. Bertin:
Gustaf Neumann wrote:

Doesn't Tcl have the equivalent of sizeof(void*) or sizeof(size_t)?
see
     puts $::tcl_platform(wordSize)
     puts $::tcl_platform(pointerSize)
     puts $::tcl_platform(machine)
Ah, interesting, thanks (I missed this one before).

Is there a theoretical difference between the wordSize and pointerSize
(disregarding the fact that it's AFAIK language-dependent what size a long is)?
"wordSize" is sizeof(long) [1] and is compiler dependent (and of course influenced by the data model ILP32 vs. LP64). The C standard just defines that sizeof(long) must be greater or equal 32 bits. "pointerSize" refers to sizeof(void*) (in c99 lingo " generic object pointer").

-g

[1] https://github.com/tcltk/tcl/blob/master/generic/tclBasic.c#L935

_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to