Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ? Date: Mon, 30 Aug 2021 23:29:55 -0700 Organization: None to speak of Lines: 26 Message-ID: <87czpui0t8.fsf@nosuchdomain.example.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="92d4ef50dec0029532564256321dcd53"; logging-data="29379"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LIN9E1ZqwWrHHa8ugOmV9" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:bZPUog8XsR3sVMFQWGHX6e5H2TU= sha1:3OF6o+8p03W3L24G1pqHj6813vw= Xref: csiph.com comp.lang.c++:80908 Siri Cruise writes: > In article , > "Alf P. Steinbach" wrote: > >> Are there any examples of current platforms/architectures where >> sizeof(void*) > sizeof(int*) ? > > sizeof(void*) <= sizeof(intptr_t) > > That's sort of the point of having intptr_t. That's not guaranteed. What is guaranteed is that converting a void* to intptr_t and back again yields a value that compares equal to the original (if intptr_t exists). If void* has bits that do not contribute to its representation (basically padding bits, but I believe the standard uses that term only for integer types), then it's possible that intptr_t could be smaller than void*. It's unlikely, though. Also, how is that relevant to the original question? -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */