Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

fortune: cpu time/usefulness ratio too high -- core dumped.


devel / comp.lang.c / Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

SubjectAuthor
* Re: Examples of current platforms/architectures where sizeof(void*) >Lynn McGuire
+* Re: Examples of current platforms/architectures where sizeof(void*) >Andrey Tarasevich
|`- Re: Examples of current platforms/architectures where sizeof(void*) >Andrey Tarasevich
+* Re: Examples of current platforms/architectures where sizeof(void*) >Bo Persson
|`* Re: Examples of current platforms/architectures where sizeof(void*) >Lynn McGuire
| +- Re: Examples of current platforms/architectures where sizeof(void*) >David Brown
| `* Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intScott Lurndal
|  `* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|   `* Re: Examples of current platforms/architectures where sizeof(void*) >David Brown
|    +* Re: Examples of current platforms/architectures where sizeof(void*) >Lynn McGuire
|    |+- Re: Examples of current platforms/architectures where sizeof(void*) >David Brown
|    |`* Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intScott Lurndal
|    | `* Re: Examples of current platforms/architectures where sizeof(void*) >Lynn McGuire
|    |  `* Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intScott Lurndal
|    |   `* Re: Examples of current platforms/architectures where sizeof(void*) >Michael S
|    |    `- Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intScott Lurndal
|    +* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |`* Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    | `* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |  `* Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    |   `* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |    `* Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    |     `* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |      +* Re: Examples of current platforms/architectures where sizeof(void*) >Manfred
|    |      |`* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |      | +* Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intScott Lurndal
|    |      | |`* Re: Examples of current platforms/architectures where sizeof(void*) >Bart
|    |      | | `- Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intScott Lurndal
|    |      | `- Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    |      `* Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    |       +* Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intBen Bacarisse
|    |       |+* Re: Examples of current platforms/architectures where sizeof(void*) >James Kuyper
|    |       ||`* Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intBen Bacarisse
|    |       || `- Re: Examples of current platforms/architectures where sizeof(void*) >James Kuyper
|    |       |`- Re: Examples of current platforms/architectures where sizeof(void*) >David Brown
|    |       `* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |        `* Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    |         `* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |          `* Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    |           `* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |            `* Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    |             `* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |              `* Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    |               `* Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |                +* Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    |                |`- Re: Examples of current platforms/architectures where sizeof(void*) >Bonita Montero
|    |                `- Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|    `* Re: Examples of current platforms/architectures where sizeof(void*) >Bart
|     +- Re: Examples of current platforms/architectures where sizeof(void*) >james...@alumni.caltech.edu
|     +* Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intScott Lurndal
|     |+* Re: Examples of current platforms/architectures where sizeof(void*) >Michael S
|     ||+- Re: Examples of current platforms/architectures where sizeof(void*) >Bart
|     ||+- Re: Examples of current platforms/architectures where sizeof(void*) >Andrey Tarasevich
|     ||+* Re: Examples of current platforms/architectures where sizeof(void*) >David Brown
|     |||`- Re: Examples of current platforms/architectures where sizeof(void*) >Malcolm McLean
|     ||+- Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intJoe Pfeiffer
|     ||`* Re: Examples of current platforms/architectures where sizeof(void*) >Vir Campestris
|     || +* Re: Examples of current platforms/architectures where sizeof(void*) >James Kuyper
|     || |`- Re: Examples of current platforms/architectures where sizeof(void*) >Vir Campestris
|     || `- Re: Examples of current platforms/architectures where sizeof(void*) >Michael S
|     |+* Re: Examples of current platforms/architectures where sizeof(void*) >Lynn McGuire
|     ||`* Re: Examples of current platforms/architectures where sizeof(void*) >Chris M. Thomasson
|     || `- Re: Examples of current platforms/architectures where sizeof(void*) >Lynn McGuire
|     |+* Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intTim Rentsch
|     ||`- Re: Examples of current platforms/architectures where sizeof(void*) >Chris M. Thomasson
|     |`- Re: Examples of current platforms/architectures where sizeof(void*) >Bart
|     `* Re: Examples of current platforms/architectures where sizeof(void*) >David Brown
|      +* Re: Examples of current platforms/architectures where sizeof(void*) >Bart
|      |`- Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intKeith Thompson
|      `* Re: Examples of current platforms/architectures where sizeof(void*) >Michael S
|       `* Re: Examples of current platforms/architectures where sizeof(void*) >David Brown
|        +- Re: Examples of current platforms/architectures where sizeof(void*) >Michael S
|        `* Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(intKeith Thompson
|         `- Re: Examples of current platforms/architectures where sizeof(void*) >Bart
`* Re: Examples of current platforms/architectures where sizeof(void*) >Mark Bluemel
 +- Re: Examples of current platforms/architectures where sizeof(void*) >Mark Bluemel
 `* Re: Examples of current platforms/architectures where sizeof(void*) >Lynn McGuire
  `- Re: Examples of current platforms/architectures where sizeof(void*) >Mark Bluemel

Pages:1234
Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<sgtm8m$ji4$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18180&group=comp.lang.c#18180

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!Puiiztk9lHEEQC0y3uUjRA.user.46.165.242.75.POSTED!not-for-mail
From: non...@add.invalid (Manfred)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Fri, 3 Sep 2021 19:33:09 +0200
Organization: Aioe.org NNTP Server
Message-ID: <sgtm8m$ji4$1@gioia.aioe.org>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="20036"; posting-host="Puiiztk9lHEEQC0y3uUjRA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Manfred - Fri, 3 Sep 2021 17:33 UTC

On 9/3/2021 5:02 PM, Bonita Montero wrote:
> Am 03.09.2021 um 15:59 schrieb james...@alumni.caltech.edu:
>> On Friday, September 3, 2021 at 1:10:37 AM UTC-4, Bonita Montero wrote:
>>> Am 02.09.2021 um 20:28 schrieb james...@alumni.caltech.edu:
>>>
>>>> The platform doesn't have pointers - that's a C concept. ...
>>>
>>> If they allow memory-addressing they know pointers.
>>
>> A platform can only be said to "know" something if it's running a
>> program.
>
> Machine-level does know pointers and architecture-depenent data-types:
>     MOV EBX, DWORD PTR [EAX + ECX * 8]
> Rest of your nonsense unread.
>

Actually that's an example of the difference between a pointer and an
address.
The rest of James' post explains that difference in detail, but that's
out of your reach.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<sgtn3a$s1q$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18181&group=comp.lang.c#18181

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Fri, 3 Sep 2021 19:47:22 +0200
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <sgtn3a$s1q$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me> <sgtm8m$ji4$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 3 Sep 2021 17:47:22 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2240f3898003045073212c6d53c6774a";
logging-data="28730"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fU7feV/iLF+ikYmtCzU4IQ52ziHDGqOM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:PjXEqsFWqP40ogLtqWlMbjJJ1WI=
In-Reply-To: <sgtm8m$ji4$1@gioia.aioe.org>
Content-Language: de-DE
 by: Bonita Montero - Fri, 3 Sep 2021 17:47 UTC

Am 03.09.2021 um 19:33 schrieb Manfred:
> On 9/3/2021 5:02 PM, Bonita Montero wrote:
>> Am 03.09.2021 um 15:59 schrieb james...@alumni.caltech.edu:
>>> On Friday, September 3, 2021 at 1:10:37 AM UTC-4, Bonita Montero wrote:
>>>> Am 02.09.2021 um 20:28 schrieb james...@alumni.caltech.edu:
>>>>
>>>>> The platform doesn't have pointers - that's a C concept. ...
>>>>
>>>> If they allow memory-addressing they know pointers.
>>>
>>> A platform can only be said to "know" something if it's running a
>>> program.
>>
>> Machine-level does know pointers and architecture-depenent data-types:
>>      MOV EBX, DWORD PTR [EAX + ECX * 8]
>> Rest of your nonsense unread.
>>
>
> Actually that's an example of the difference between a pointer and an
> address.

The pointer DWORD PTR [EAX + ECX * 8] is typed: DWORD.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18182&group=comp.lang.c#18182

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:6bcc:: with SMTP id b12mr129422qtt.243.1630691357299;
Fri, 03 Sep 2021 10:49:17 -0700 (PDT)
X-Received: by 2002:a05:620a:2008:: with SMTP id c8mr9387qka.493.1630691357053;
Fri, 03 Sep 2021 10:49:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 3 Sep 2021 10:49:16 -0700 (PDT)
In-Reply-To: <sgtdf2$g6v$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=108.48.119.9; posting-account=Ix1u_AoAAAAILVQeRkP2ENwli-Uv6vO8
NNTP-Posting-Host: 108.48.119.9
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me> <660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me> <1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me> <b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
From: jameskuy...@alumni.caltech.edu (james...@alumni.caltech.edu)
Injection-Date: Fri, 03 Sep 2021 17:49:17 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 45
 by: james...@alumni.calt - Fri, 3 Sep 2021 17:49 UTC

On Friday, September 3, 2021 at 11:03:12 AM UTC-4, Bonita Montero wrote:
> Am 03.09.2021 um 15:59 schrieb james...@alumni.caltech.edu:
> > On Friday, September 3, 2021 at 1:10:37 AM UTC-4, Bonita Montero wrote:
> >> Am 02.09.2021 um 20:28 schrieb james...@alumni.caltech.edu:
> >>
> >>> The platform doesn't have pointers - that's a C concept. ...
> >>
> >> If they allow memory-addressing they know pointers.
> >
> > A platform can only be said to "know" something if it's running a program.
> Machine-level does know pointers and architecture-depenent data-types:
> MOV EBX, DWORD PTR [EAX + ECX * 8]
> Rest of your nonsense unread.

On a platform such as the one I've described, with no hardware support for
access to any piece of memory smaller than 16 bits, and a compiler which
chooses to set CHAR_BIT == 8, the following function:

void add_3a(unsigned char *p) { *p += 3; }

Would have to be compiled into machine code which does something
similar to:

struct _byteptr {
int *addr
int offset;
};

void add_3b(struct _byteptr p)
{
int temp = *p->addr;
unsigned char low = temp & 0xff;
unsigned char high = temp >> 8;
if( byteptr->offset)
low += 3;
else
high += 3;
*p->addr = high<<8 + low;
}

In fact, such a compiler might generate code for add_3a() which is
interchangeable with that for add_3b().

On such a platform, in what sense does the platform "know" about
char*? The compiler knows about char*, but I don't see how the
platform can be said to know about it.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<ijtYI.24820$jm6.9685@fx07.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18183&group=comp.lang.c#18183

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx07.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?
Newsgroups: comp.lang.c
References: <sgglb9$c02$1@dont-email.me> <sgn0j7$999$1@dont-email.me> <u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me> <sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me> <660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com> <sgpgtm$ft7$1@dont-email.me> <1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com> <sgsao1$ie0$1@dont-email.me> <b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com> <sgtdf2$g6v$1@dont-email.me> <sgtm8m$ji4$1@gioia.aioe.org> <sgtn3a$s1q$1@dont-email.me>
Lines: 56
Message-ID: <ijtYI.24820$jm6.9685@fx07.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 03 Sep 2021 17:54:22 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 03 Sep 2021 17:54:22 GMT
X-Received-Bytes: 4007
 by: Scott Lurndal - Fri, 3 Sep 2021 17:54 UTC

Bonita Montero <Bonita.Montero@gmail.com> writes:
>Am 03.09.2021 um 19:33 schrieb Manfred:
>> On 9/3/2021 5:02 PM, Bonita Montero wrote:
>>> Am 03.09.2021 um 15:59 schrieb james...@alumni.caltech.edu:
>>>> On Friday, September 3, 2021 at 1:10:37 AM UTC-4, Bonita Montero wrote:
>>>>> Am 02.09.2021 um 20:28 schrieb james...@alumni.caltech.edu:
>>>>>
>>>>>> The platform doesn't have pointers - that's a C concept. ...
>>>>>
>>>>> If they allow memory-addressing they know pointers.
>>>>
>>>> A platform can only be said to "know" something if it's running a
>>>> program.
>>>
>>> Machine-level does know pointers and architecture-depenent data-types:
>>>      MOV EBX, DWORD PTR [EAX + ECX * 8]
>>> Rest of your nonsense unread.
>>>
>>
>> Actually that's an example of the difference between a pointer and an
>> address.
>
>The pointer DWORD PTR [EAX + ECX * 8] is typed: DWORD.

I don't see any DWORD in assembly. The fact that Intel annotated the assembler
source syntax is meaningless with respect to the difference between a pointer
and an address.

262: e8 00 00 00 00 callq 267 <_ZN8c_system4initEv+0x1b7>
267: 48 8d 74 24 10 lea 0x10(%rsp),%rsi
26c: 48 89 e7 mov %rsp,%rdi
26f: e8 00 00 00 00 callq 274 <_ZN8c_system4initEv+0x1c4>
274: 4c 89 e7 mov %r12,%rdi
277: 8b 48 14 mov 0x14(%rax),%ecx
27a: 8d 91 6c 07 00 00 lea 0x76c(%rcx),%edx
280: 48 63 d2 movslq %edx,%rdx
283: 48 89 93 f0 09 00 00 mov %rdx,0x9f0(%rbx)
28a: 8b 48 10 mov 0x10(%rax),%ecx
28d: 8d 51 01 lea 0x1(%rcx),%edx
290: 48 63 d2 movslq %edx,%rdx
293: 48 89 93 f8 09 00 00 mov %rdx,0x9f8(%rbx)
29a: 48 63 50 0c movslq 0xc(%rax),%rdx
29e: 48 89 93 00 0a 00 00 mov %rdx,0xa00(%rbx)
2a5: 48 63 48 08 movslq 0x8(%rax),%rcx
2a9: 48 69 c9 10 0e 00 00 imul $0xe10,%rcx,%rcx
2b0: 48 89 8b 08 0a 00 00 mov %rcx,0xa08(%rbx)
2b7: 48 63 50 04 movslq 0x4(%rax),%rdx
2bb: 48 8d 34 95 00 00 00 lea 0x0(,%rdx,4),%rsi
2c2: 00
2c3: 48 c1 e2 06 shl $0x6,%rdx
2c7: 48 29 f2 sub %rsi,%rdx
2ca: 48 01 ca add %rcx,%rdx
2cd: 48 8b 4c 24 08 mov 0x8(%rsp),%rcx
2d2: 48 89 93 08 0a 00 00 mov %rdx,0xa08(%rbx)
2d9: 48 63 00 movslq (%rax),%rax
2dc: 48 c7 83 28 0a 00 00 movq $0xffffffffffffffff,0xa28(%rbx)

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<871r65ttr3.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18184&group=comp.lang.c#18184

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?
Date: Fri, 03 Sep 2021 19:10:40 +0100
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <871r65ttr3.fsf@bsb.me.uk>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="aa8ce3030130b0cc8988b6a5e8bec9e4";
logging-data="1096"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VGZjJpYG+t9eEdEfqzkh1WgiMTRYy7a4="
Cancel-Lock: sha1:c4ASx2m3oD465Ck9OZCjLVSI+Vs=
sha1:oGte4RuBMTMfe65BE/IOuz2lgZo=
X-BSB-Auth: 1.f91f14bb15e3826ac2c7.20210903191040BST.871r65ttr3.fsf@bsb.me.uk
 by: Ben Bacarisse - Fri, 3 Sep 2021 18:10 UTC

"james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu> writes:

> On Friday, September 3, 2021 at 11:03:12 AM UTC-4, Bonita Montero wrote:
>> Am 03.09.2021 um 15:59 schrieb james...@alumni.caltech.edu:
>> > On Friday, September 3, 2021 at 1:10:37 AM UTC-4, Bonita Montero wrote:
>> >> Am 02.09.2021 um 20:28 schrieb james...@alumni.caltech.edu:
>> >>
>> >>> The platform doesn't have pointers - that's a C concept. ...
>> >>
>> >> If they allow memory-addressing they know pointers.
>> >
>> > A platform can only be said to "know" something if it's running a program.
>> Machine-level does know pointers and architecture-depenent data-types:
>> MOV EBX, DWORD PTR [EAX + ECX * 8]
>> Rest of your nonsense unread.
>
> On a platform such as the one I've described, with no hardware support for
> access to any piece of memory smaller than 16 bits, and a compiler which
> chooses to set CHAR_BIT == 8, the following function:
>
> void add_3a(unsigned char *p) { *p += 3; }
>
> Would have to be compiled into machine code which does something
> similar to:
>
> struct _byteptr {
> int *addr
> int offset;
> };

I used (as was tangentially involved in the implementation of) C on a
machine that had 16 bit words and only word addressing. The choice made
there was to use the bottom bit to select between the two halves of the
word addressed by the pointer (shifted right by 1).

--
Ben.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<sgtp10$a22$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18186&group=comp.lang.c#18186

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Fri, 3 Sep 2021 14:20:16 -0400
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <sgtp10$a22$2@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<871r65ttr3.fsf@bsb.me.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 3 Sep 2021 18:20:16 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f3d211ae87eb3da3c667aaf32e75bb06";
logging-data="10306"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LJK7E6snJaxeR8eLJTFCDWWzkoRe9uHo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:ekn/XgYic6EENpV9UhRn/W3QnxE=
In-Reply-To: <871r65ttr3.fsf@bsb.me.uk>
Content-Language: en-US
 by: James Kuyper - Fri, 3 Sep 2021 18:20 UTC

On 9/3/21 2:10 PM, Ben Bacarisse wrote:
> "james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu> writes:
....
>> On a platform such as the one I've described, with no hardware support for
>> access to any piece of memory smaller than 16 bits, and a compiler which
>> chooses to set CHAR_BIT == 8, the following function:
>>
>> void add_3a(unsigned char *p) { *p += 3; }
>>
>> Would have to be compiled into machine code which does something
>> similar to:
>>
>> struct _byteptr {
>> int *addr
>> int offset;
>> };
>
> I used (as was tangentially involved in the implementation of) C on a
> machine that had 16 bit words and only word addressing. The choice made
> there was to use the bottom bit to select between the two halves of the
> word addressed by the pointer (shifted right by 1).

If I understand you correctly, that's a workable approach so long as you
have no more than 32768 words of addressable memory. However, as such,
it's not an example of an implementation where sizeof(void*) > sizeof(int*).

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<87r1e5sdkl.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18187&group=comp.lang.c#18187

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?
Date: Fri, 03 Sep 2021 19:45:30 +0100
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <87r1e5sdkl.fsf@bsb.me.uk>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<871r65ttr3.fsf@bsb.me.uk> <sgtp10$a22$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="aa8ce3030130b0cc8988b6a5e8bec9e4";
logging-data="1096"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yZ4m2AO12ilS4k9uIqdybncEgGRk89/I="
Cancel-Lock: sha1:STXYc6bIpilI/U+q82+Hl15rBtc=
sha1:M5ziw8To9BzXu08FHkZZhODzKOE=
X-BSB-Auth: 1.222ecd65dd042d2284c6.20210903194530BST.87r1e5sdkl.fsf@bsb.me.uk
 by: Ben Bacarisse - Fri, 3 Sep 2021 18:45 UTC

I replied to an email from you instead of the public post. Please don't
mail copies of posts...

James Kuyper <jameskuyper@alumni.caltech.edu> writes:

> On 9/3/21 2:10 PM, Ben Bacarisse wrote:
>> "james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu> writes:
> ...
>>> On a platform such as the one I've described, with no hardware support for
>>> access to any piece of memory smaller than 16 bits, and a compiler which
>>> chooses to set CHAR_BIT == 8, the following function:
>>>
>>> void add_3a(unsigned char *p) { *p += 3; }
>>>
>>> Would have to be compiled into machine code which does something
>>> similar to:
>>>
>>> struct _byteptr {
>>> int *addr
>>> int offset;
>>> };
>>
>> I used (as was tangentially involved in the implementation of) C on a
>> machine that had 16 bit words and only word addressing. The choice made
>> there was to use the bottom bit to select between the two halves of the
>> word addressed by the pointer (shifted right by 1).
>
> If I understand you correctly, that's a workable approach so long as you
> have no more than 32768 words of addressable memory.

Yes. It was a per-process limit. The machine had more than that in total.

> However, as such,
> it's not an example of an implementation where sizeof(void*) > sizeof(int*).

Yes. I was only showing another approach to implementing byte
addresses.

--
Ben.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<sgtuio$h4d$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18188&group=comp.lang.c#18188

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Fri, 3 Sep 2021 20:54:52 +0100
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <sgtuio$h4d$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me> <sgtm8m$ji4$1@gioia.aioe.org>
<sgtn3a$s1q$1@dont-email.me> <ijtYI.24820$jm6.9685@fx07.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 3 Sep 2021 19:55:04 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="17b68791eedc8b35127461492add731b";
logging-data="17549"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CJ2HC2dERmWZp6Sbd4Gz1ok6K5Bsi2rY="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:oeQltMlI1JoXqgN62FxUGGHVNeY=
In-Reply-To: <ijtYI.24820$jm6.9685@fx07.iad>
X-Antivirus-Status: Clean
Content-Language: en-GB
X-Antivirus: AVG (VPS 210903-8, 3/9/2021), Outbound message
 by: Bart - Fri, 3 Sep 2021 19:54 UTC

On 03/09/2021 18:54, Scott Lurndal wrote:
> Bonita Montero <Bonita.Montero@gmail.com> writes:
>> Am 03.09.2021 um 19:33 schrieb Manfred:
>>> On 9/3/2021 5:02 PM, Bonita Montero wrote:
>>>> Am 03.09.2021 um 15:59 schrieb james...@alumni.caltech.edu:
>>>>> On Friday, September 3, 2021 at 1:10:37 AM UTC-4, Bonita Montero wrote:
>>>>>> Am 02.09.2021 um 20:28 schrieb james...@alumni.caltech.edu:
>>>>>>
>>>>>>> The platform doesn't have pointers - that's a C concept. ...
>>>>>>
>>>>>> If they allow memory-addressing they know pointers.
>>>>>
>>>>> A platform can only be said to "know" something if it's running a
>>>>> program.
>>>>
>>>> Machine-level does know pointers and architecture-depenent data-types:
>>>>      MOV EBX, DWORD PTR [EAX + ECX * 8]
>>>> Rest of your nonsense unread.
>>>>
>>>
>>> Actually that's an example of the difference between a pointer and an
>>> address.
>>
>> The pointer DWORD PTR [EAX + ECX * 8] is typed: DWORD.
>
> I don't see any DWORD in assembly. The fact that Intel annotated the assembler
> source syntax is meaningless with respect to the difference between a pointer
> and an address.
>
> 262: e8 00 00 00 00 callq 267 <_ZN8c_system4initEv+0x1b7>
> 267: 48 8d 74 24 10 lea 0x10(%rsp),%rsi
> 26c: 48 89 e7 mov %rsp,%rdi
> 26f: e8 00 00 00 00 callq 274 <_ZN8c_system4initEv+0x1c4>
> 274: 4c 89 e7 mov %r12,%rdi
> 277: 8b 48 14 mov 0x14(%rax),%ecx
> 27a: 8d 91 6c 07 00 00 lea 0x76c(%rcx),%edx
> 280: 48 63 d2 movslq %edx,%rdx
> 283: 48 89 93 f0 09 00 00 mov %rdx,0x9f0(%rbx)
> 28a: 8b 48 10 mov 0x10(%rax),%ecx
> 28d: 8d 51 01 lea 0x1(%rcx),%edx
> 290: 48 63 d2 movslq %edx,%rdx
> 293: 48 89 93 f8 09 00 00 mov %rdx,0x9f8(%rbx)
> 29a: 48 63 50 0c movslq 0xc(%rax),%rdx
> 29e: 48 89 93 00 0a 00 00 mov %rdx,0xa00(%rbx)
> 2a5: 48 63 48 08 movslq 0x8(%rax),%rcx
> 2a9: 48 69 c9 10 0e 00 00 imul $0xe10,%rcx,%rcx
> 2b0: 48 89 8b 08 0a 00 00 mov %rcx,0xa08(%rbx)
> 2b7: 48 63 50 04 movslq 0x4(%rax),%rdx
> 2bb: 48 8d 34 95 00 00 00 lea 0x0(,%rdx,4),%rsi
> 2c2: 00
> 2c3: 48 c1 e2 06 shl $0x6,%rdx
> 2c7: 48 29 f2 sub %rsi,%rdx
> 2ca: 48 01 ca add %rcx,%rdx
> 2cd: 48 8b 4c 24 08 mov 0x8(%rsp),%rcx
> 2d2: 48 89 93 08 0a 00 00 mov %rdx,0xa08(%rbx)
> 2d9: 48 63 00 movslq (%rax),%rax
> 2dc: 48 c7 83 28 0a 00 00 movq $0xffffffffffffffff,0xa28(%rbx)
>

You'd get the same output from compiled HLL code.

The 'dword' part in Intel assembly syntax, and the -l suffix used above,
serve the same purpose in telling the assembler that that particular
pointer/address refers to a 4-byte-wide memory location rather than 1, 2
or 8 bytes.

It helps it choose the correct instruction encoding.

However it is unnecessary in the 'move ebx' example as the pointer type
can be inferred from the destination register size.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<sgu0u6$290$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18189&group=comp.lang.c#18189

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Fri, 3 Sep 2021 16:35:17 -0400
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <sgu0u6$290$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<871r65ttr3.fsf@bsb.me.uk> <sgtp10$a22$2@dont-email.me>
<87r1e5sdkl.fsf@bsb.me.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 3 Sep 2021 20:35:19 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f3d211ae87eb3da3c667aaf32e75bb06";
logging-data="2336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/98On4HLq4Fqjiu6ZpojR6Lw64cR7f+gY="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:cC5ApMJqDabjiXXRm7bgg8s5Xvc=
In-Reply-To: <87r1e5sdkl.fsf@bsb.me.uk>
Content-Language: en-US
 by: James Kuyper - Fri, 3 Sep 2021 20:35 UTC

On 9/3/21 2:45 PM, Ben Bacarisse wrote:
> I replied to an email from you instead of the public post. Please don't
> mail copies of posts...

Sorry - it's been a couple of months since Mozilla Thunderbird changes
the meaning of the "Reply" button, and added a "Followup" button. Since
I've spent a couple of decades hitting the "Reply" button when I want to
follow-up on a usenet message, it's taking me quite a while to break
that habit. I'm still hitting "Reply" far more often than "Followup",
and only occasionally noticing the mistake before hitting "Send".

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<DWvYI.21843$md6.18006@fx36.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18190&group=comp.lang.c#18190

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx36.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?
Newsgroups: comp.lang.c
References: <sgglb9$c02$1@dont-email.me> <sgocps$nqd$1@dont-email.me> <sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me> <660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com> <sgpgtm$ft7$1@dont-email.me> <1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com> <sgsao1$ie0$1@dont-email.me> <b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com> <sgtdf2$g6v$1@dont-email.me> <sgtm8m$ji4$1@gioia.aioe.org> <sgtn3a$s1q$1@dont-email.me> <ijtYI.24820$jm6.9685@fx07.iad> <sgtuio$h4d$1@dont-email.me>
Lines: 8
Message-ID: <DWvYI.21843$md6.18006@fx36.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 03 Sep 2021 20:52:51 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 03 Sep 2021 20:52:51 GMT
X-Received-Bytes: 1381
 by: Scott Lurndal - Fri, 3 Sep 2021 20:52 UTC

Bart <bc@freeuk.com> writes:
>On 03/09/2021 18:54, Scott Lurndal wrote:

>You'd get the same output from compiled HLL code.
>
>The 'dword' part in Intel assembly syntax, and the -l.

Indeed. Unnecessarily noisy.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<sgv66r$92c$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18191&group=comp.lang.c#18191

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Sat, 4 Sep 2021 09:11:23 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <sgv66r$92c$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 4 Sep 2021 07:11:23 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="dffdc9860e26891f5c64d20cf0a6971b";
logging-data="9292"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+15H3mLjWBua+vSh7X5Zh5UM6esJUmUQM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:kr2AmKpj99BdFpX4/UEwggkgyXM=
In-Reply-To: <90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
Content-Language: de-DE
 by: Bonita Montero - Sat, 4 Sep 2021 07:11 UTC

Am 03.09.2021 um 19:49 schrieb james...@alumni.caltech.edu:
> On Friday, September 3, 2021 at 11:03:12 AM UTC-4, Bonita Montero wrote:
>> Am 03.09.2021 um 15:59 schrieb james...@alumni.caltech.edu:
>>> On Friday, September 3, 2021 at 1:10:37 AM UTC-4, Bonita Montero wrote:
>>>> Am 02.09.2021 um 20:28 schrieb james...@alumni.caltech.edu:
>>>>
>>>>> The platform doesn't have pointers - that's a C concept. ...
>>>>
>>>> If they allow memory-addressing they know pointers.
>>>
>>> A platform can only be said to "know" something if it's running a program.
>> Machine-level does know pointers and architecture-depenent data-types:
>> MOV EBX, DWORD PTR [EAX + ECX * 8]
>> Rest of your nonsense unread.
>
> On a platform such as the one I've described, with no hardware support for
> access to any piece of memory smaller than 16 bits, ...

That's not what we've been discussing.
Rest of your nonsense unread.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<sgvkb1$pqa$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18192&group=comp.lang.c#18192

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Sat, 4 Sep 2021 13:12:32 +0200
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <sgvkb1$pqa$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<871r65ttr3.fsf@bsb.me.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 4 Sep 2021 11:12:33 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3943b84b7912f1bcc5bbe73bbdc4b2f6";
logging-data="26442"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BROJxQm3KLW+kJku0AyBGxk+VtH7aSjM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:7v5eEslogd9gnmfSOWOdMHt6h+0=
In-Reply-To: <871r65ttr3.fsf@bsb.me.uk>
Content-Language: en-GB
 by: David Brown - Sat, 4 Sep 2021 11:12 UTC

On 03/09/2021 20:10, Ben Bacarisse wrote:

>
> I used (as was tangentially involved in the implementation of) C on a
> machine that had 16 bit words and only word addressing. The choice made
> there was to use the bottom bit to select between the two halves of the
> word addressed by the pointer (shifted right by 1).
>

There are a number of microcontrollers that have a similar principle for
bit-sized accesses (with hardware support, rather than
compiler-generated code for using the bit pointers). This is typically
restricted to a particular section of on-chip ram (or peripheral
registers) that is mapped in two address areas - one as bytes (or
bigger), and one as bits using byte addresses. It can be very handy for
giving fast, atomic bit-wise access.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18193&group=comp.lang.c#18193

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:c4d:: with SMTP id u13mr4272878qki.411.1630780073185;
Sat, 04 Sep 2021 11:27:53 -0700 (PDT)
X-Received: by 2002:a05:620a:2a07:: with SMTP id o7mr4296521qkp.213.1630780072966;
Sat, 04 Sep 2021 11:27:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 4 Sep 2021 11:27:52 -0700 (PDT)
In-Reply-To: <sgv66r$92c$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=108.48.119.9; posting-account=Ix1u_AoAAAAILVQeRkP2ENwli-Uv6vO8
NNTP-Posting-Host: 108.48.119.9
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me> <660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me> <1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me> <b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me> <90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<sgv66r$92c$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
From: jameskuy...@alumni.caltech.edu (james...@alumni.caltech.edu)
Injection-Date: Sat, 04 Sep 2021 18:27:53 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 30
 by: james...@alumni.calt - Sat, 4 Sep 2021 18:27 UTC

On Saturday, September 4, 2021 at 3:11:34 AM UTC-4, Bonita Montero wrote:
> Am 03.09.2021 um 19:49 schrieb james...@alumni.caltech.edu:
> > On Friday, September 3, 2021 at 11:03:12 AM UTC-4, Bonita Montero wrote:
> >> Am 03.09.2021 um 15:59 schrieb james...@alumni.caltech.edu:
> >>> On Friday, September 3, 2021 at 1:10:37 AM UTC-4, Bonita Montero wrote:
> >>>> Am 02.09.2021 um 20:28 schrieb james...@alumni.caltech.edu:
> >>>>
> >>>>> The platform doesn't have pointers - that's a C concept. ...
> >>>>
> >>>> If they allow memory-addressing they know pointers.
> >>>
> >>> A platform can only be said to "know" something if it's running a program.
> >> Machine-level does know pointers and architecture-depenent data-types:
> >> MOV EBX, DWORD PTR [EAX + ECX * 8]
> >> Rest of your nonsense unread.
> >
> > On a platform such as the one I've described, with no hardware support for
> > access to any piece of memory smaller than 16 bits, ...
>
> That's not what we've been discussing.

The Subject: header for this thread says "sizeof(void*) > sizeof(int*)". While the
standard permits this without imposing any requirements on the reason, the
only real-world implementations I've heard of which had that characteristics
were implementations which choose to have CHAR_BIT smaller than the
number of bits in the smallest hardware-addressable unit of memory. Every
comment I've posted to this thread was about such systems; I believe that this
has also been the case for many of the other posters, though they haven't all
been clear about the matter. If you ever responded to one of my comments on
this thread, discussing a system for which that wasn't the case, then you
weren't meaningfully responding to my comments.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<c794a8f0-cce5-426e-a38f-68954331ae36n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18194&group=comp.lang.c#18194

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:166d:: with SMTP id d13mr4292737qko.491.1630784200037;
Sat, 04 Sep 2021 12:36:40 -0700 (PDT)
X-Received: by 2002:a0c:9c09:: with SMTP id v9mr5181204qve.63.1630784199871;
Sat, 04 Sep 2021 12:36:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 4 Sep 2021 12:36:39 -0700 (PDT)
In-Reply-To: <sgtn3a$s1q$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=108.48.119.9; posting-account=Ix1u_AoAAAAILVQeRkP2ENwli-Uv6vO8
NNTP-Posting-Host: 108.48.119.9
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me> <660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me> <1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me> <b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me> <sgtm8m$ji4$1@gioia.aioe.org> <sgtn3a$s1q$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c794a8f0-cce5-426e-a38f-68954331ae36n@googlegroups.com>
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
From: jameskuy...@alumni.caltech.edu (james...@alumni.caltech.edu)
Injection-Date: Sat, 04 Sep 2021 19:36:40 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 34
 by: james...@alumni.calt - Sat, 4 Sep 2021 19:36 UTC

On Friday, September 3, 2021 at 1:47:34 PM UTC-4, Bonita Montero wrote:
> Am 03.09.2021 um 19:33 schrieb Manfred:
> > On 9/3/2021 5:02 PM, Bonita Montero wrote:
> >> Am 03.09.2021 um 15:59 schrieb james...@alumni.caltech.edu:
> >>> On Friday, September 3, 2021 at 1:10:37 AM UTC-4, Bonita Montero wrote:
> >>>> Am 02.09.2021 um 20:28 schrieb james...@alumni.caltech.edu:
> >>>>
> >>>>> The platform doesn't have pointers - that's a C concept. ...
> >>>>
> >>>> If they allow memory-addressing they know pointers.
> >>>
> >>> A platform can only be said to "know" something if it's running a
> >>> program.
> >>
> >> Machine-level does know pointers and architecture-depenent data-types:

For the implementations in question, a char is NOT an architecture- dependent
data-type, because the target architecture doesn't know about any data type
smaller than a word, and therefore has no instructions for retrieving such data
types. Operations involving smaller data types can only be emulated in
software - there is no hardware support for them.

> >> MOV EBX, DWORD PTR [EAX + ECX * 8]
> >> Rest of your nonsense unread.
> >>
> >
> > Actually that's an example of the difference between a pointer and an
> > address.
> The pointer DWORD PTR [EAX + ECX * 8] is typed: DWORD.

As I said, in machine language "What type of thing it points at is
determined by the code that uses that address.". You could just as easily
use a different instruction to retrieve a single word from the same address.
That's very different from C pointers, where the behavior and permitted
operations depends very strongly on the pointer type.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<sh19q5$93n$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18195&group=comp.lang.c#18195

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Sun, 5 Sep 2021 04:25:10 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <sh19q5$93n$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<sgv66r$92c$1@dont-email.me>
<3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 5 Sep 2021 02:25:09 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5d5db43e33ddccb4578944f92f835560";
logging-data="9335"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vU97brO57g9JbR4Q0zKi53489WJo7oII="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:YRD4R6TRbORawJTgM7Xl3q0K2AI=
In-Reply-To: <3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>
Content-Language: de-DE
 by: Bonita Montero - Sun, 5 Sep 2021 02:25 UTC

Am 04.09.2021 um 20:27 schrieb james...@alumni.caltech.edu:
> On Saturday, September 4, 2021 at 3:11:34 AM UTC-4, Bonita Montero wrote:
>> Am 03.09.2021 um 19:49 schrieb james...@alumni.caltech.edu:
>>> On Friday, September 3, 2021 at 11:03:12 AM UTC-4, Bonita Montero wrote:
>>>> Am 03.09.2021 um 15:59 schrieb james...@alumni.caltech.edu:
>>>>> On Friday, September 3, 2021 at 1:10:37 AM UTC-4, Bonita Montero wrote:
>>>>>> Am 02.09.2021 um 20:28 schrieb james...@alumni.caltech.edu:
>>>>>>
>>>>>>> The platform doesn't have pointers - that's a C concept. ...
>>>>>>
>>>>>> If they allow memory-addressing they know pointers.
>>>>>
>>>>> A platform can only be said to "know" something if it's running a program.
>>>> Machine-level does know pointers and architecture-depenent data-types:
>>>> MOV EBX, DWORD PTR [EAX + ECX * 8]
>>>> Rest of your nonsense unread.
>>>
>>> On a platform such as the one I've described, with no hardware support for
>>> access to any piece of memory smaller than 16 bits, ...
>>
>> That's not what we've been discussing.
>
> The Subject: header for this thread says "sizeof(void*) > sizeof(int*)". ...

This sub-thread is about typing of assembly.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<0a4a7e41-ce98-4365-bf82-d0320e2875fdn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18232&group=comp.lang.c#18232

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:2909:: with SMTP id m9mr13436405qkp.77.1630969821926;
Mon, 06 Sep 2021 16:10:21 -0700 (PDT)
X-Received: by 2002:a0c:f8c2:: with SMTP id h2mr14361773qvo.45.1630969821721;
Mon, 06 Sep 2021 16:10:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 6 Sep 2021 16:10:21 -0700 (PDT)
In-Reply-To: <sh19q5$93n$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=108.48.119.9; posting-account=Ix1u_AoAAAAILVQeRkP2ENwli-Uv6vO8
NNTP-Posting-Host: 108.48.119.9
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me> <660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me> <1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me> <b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me> <90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<sgv66r$92c$1@dont-email.me> <3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>
<sh19q5$93n$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0a4a7e41-ce98-4365-bf82-d0320e2875fdn@googlegroups.com>
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
From: jameskuy...@alumni.caltech.edu (james...@alumni.caltech.edu)
Injection-Date: Mon, 06 Sep 2021 23:10:21 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 44
 by: james...@alumni.calt - Mon, 6 Sep 2021 23:10 UTC

On Saturday, September 4, 2021 at 10:25:22 PM UTC-4, Bonita Montero wrote:
> Am 04.09.2021 um 20:27 schrieb james...@alumni.caltech.edu:
> > On Saturday, September 4, 2021 at 3:11:34 AM UTC-4, Bonita Montero wrote:
> >> Am 03.09.2021 um 19:49 schrieb james...@alumni.caltech.edu:
> >>> On Friday, September 3, 2021 at 11:03:12 AM UTC-4, Bonita Montero wrote:
....
> >>>> Machine-level does know pointers and architecture-depenent data-types:
> >>>> MOV EBX, DWORD PTR [EAX + ECX * 8]
> >>>> Rest of your nonsense unread.
> >>>
> >>> On a platform such as the one I've described, with no hardware support for
> >>> access to any piece of memory smaller than 16 bits, ...
> >>
> >> That's not what we've been discussing.
> >
> > The Subject: header for this thread says "sizeof(void*) > sizeof(int*)". ...
>
> This sub-thread is about typing of assembly.

You've sidetracked the discussion is that direction, but that sidetracking occurred in the
context of the following comments:

On Thursday, September 2, 2021 at 2:28:11 PM UTC-4, james...@alumni.caltech.edu wrote:
> On Wednesday, September 1, 2021 at 11:37:37 PM UTC-4, Bonita Montero wrote:
....
> > Keep in mind that not being able to address bytes is the single most
> > common reason for having two or more different sizes of pointers.
> No, on the platforms where you don't have byte-pointers you almost never
> have typed pointers.

Assembly language addresses aren't typed pointers. As your own example demonstrated,
it has typed instructions for accessing data at a specified address. An address can be
used to access different types of data depending only upon what instruction it is passed
to. C's pointers, which actually are typed, can only be safely used to access an object or
function with a type that's compatible with the one that the pointer's type is derived from.
But the most important point is that, for an implementation that chooses to define
CHAR_BIT to be smaller than the smallest hardware-addressable unit of memory on the
target platform, byte-pointers are, by definition, a feature of that implementation, and not
something that the hardware knows anything about. At the very least, char*, signed char*,
unsigned char*, and void* are all required to have the same representation, and on such an
implementation their representation is necessarily not one that corresponds simply to a
machine address, since it must be able to point at individual bytes within a word.
You used the term "architecture-dependent data types". While these types may depend
upon the architecture, they only as part of the design of the C implementation, the
architecture itself knows nothing about them.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<sh8h3a$k9n$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18241&group=comp.lang.c#18241

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: vir.camp...@invalid.invalid (Vir Campestris)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Tue, 7 Sep 2021 21:12:26 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <sh8h3a$k9n$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgokl2$h9j$1@dont-email.me>
<zeRXI.35212$jl2.14440@fx34.iad>
<336d6d74-70c5-42a7-94d2-3a847a2d3ddan@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 7 Sep 2021 20:12:26 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9f47fb808aaf032b41d033a2047d652d";
logging-data="20791"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18K+YPPKiLR1AxRovdvcNJFfXMSEYhsaJQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:dIEztMMAiQdor8QOoYg07bq5GTQ=
In-Reply-To: <336d6d74-70c5-42a7-94d2-3a847a2d3ddan@googlegroups.com>
Content-Language: en-GB
 by: Vir Campestris - Tue, 7 Sep 2021 20:12 UTC

On 01/09/2021 22:07, Michael S wrote:
> I didn't yet encounter in real physical life a C programmer that cared in a slightest about portability or C Standard.
> Only on Internet.

Then I'm your first.

I write code for embedded devices that use three different processor
families - ARM, MIPS and Intel.

The chip manufacturers supply us with a Linux port and some other stuff
I can't discuss, but our code has to be platform agnostic.

Andy

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<sh96js$ih1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18244&group=comp.lang.c#18244

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Tue, 7 Sep 2021 22:19:40 -0400
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <sh96js$ih1$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgokl2$h9j$1@dont-email.me>
<zeRXI.35212$jl2.14440@fx34.iad>
<336d6d74-70c5-42a7-94d2-3a847a2d3ddan@googlegroups.com>
<sh8h3a$k9n$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Sep 2021 02:19:40 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="85bf3700afba86405e767e7da7b51006";
logging-data="18977"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nCYRU1qwxcR3s9NLuztytDjbZq/7BOk0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:Vcb+PtiAdqoUqYkF2ZGSMQ6wO58=
In-Reply-To: <sh8h3a$k9n$1@dont-email.me>
Content-Language: en-US
 by: James Kuyper - Wed, 8 Sep 2021 02:19 UTC

On 9/7/21 4:12 PM, Vir Campestris wrote:
> On 01/09/2021 22:07, Michael S wrote:
>> I didn't yet encounter in real physical life a C programmer that cared in a slightest about portability or C Standard.
>> Only on Internet.
>
> Then I'm your first.

You've met Michael S in real physical life, and not just on the internet?

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<shaspr$85v$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18249&group=comp.lang.c#18249

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Wed, 8 Sep 2021 19:44:27 +0200
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <shaspr$85v$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<sgv66r$92c$1@dont-email.me>
<3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>
<sh19q5$93n$1@dont-email.me>
<0a4a7e41-ce98-4365-bf82-d0320e2875fdn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Sep 2021 17:44:27 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="34a2249dfea6b6bb00e353aaccc9b0d6";
logging-data="8383"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+z90SDmR4HIRDOHV76+638hM+Hl2RJhgg="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:1aS+yidfEn2et8cMcTak4qF4O+0=
In-Reply-To: <0a4a7e41-ce98-4365-bf82-d0320e2875fdn@googlegroups.com>
Content-Language: de-DE
 by: Bonita Montero - Wed, 8 Sep 2021 17:44 UTC

Am 07.09.2021 um 01:10 schrieb james...@alumni.caltech.edu:
> On Saturday, September 4, 2021 at 10:25:22 PM UTC-4, Bonita Montero wrote:
>> Am 04.09.2021 um 20:27 schrieb james...@alumni.caltech.edu:
>>> On Saturday, September 4, 2021 at 3:11:34 AM UTC-4, Bonita Montero wrote:
>>>> Am 03.09.2021 um 19:49 schrieb james...@alumni.caltech.edu:
>>>>> On Friday, September 3, 2021 at 11:03:12 AM UTC-4, Bonita Montero wrote:
> ...
>>>>>> Machine-level does know pointers and architecture-depenent data-types:
>>>>>> MOV EBX, DWORD PTR [EAX + ECX * 8]
>>>>>> Rest of your nonsense unread.
>>>>>
>>>>> On a platform such as the one I've described, with no hardware support for
>>>>> access to any piece of memory smaller than 16 bits, ...
>>>>
>>>> That's not what we've been discussing.
>>>
>>> The Subject: header for this thread says "sizeof(void*) > sizeof(int*)". ...
>>
>> This sub-thread is about typing of assembly.
>
> You've sidetracked the discussion is that direction, but that sidetracking occurred in the
> context of the following comments:
>
> On Thursday, September 2, 2021 at 2:28:11 PM UTC-4, james...@alumni.caltech.edu wrote:
>> On Wednesday, September 1, 2021 at 11:37:37 PM UTC-4, Bonita Montero wrote:
> ...
>>> Keep in mind that not being able to address bytes is the single most
>>> common reason for having two or more different sizes of pointers.
>> No, on the platforms where you don't have byte-pointers you almost never
>> have typed pointers.
>
> Assembly language addresses aren't typed pointers. ...

When you use a register as a pointer you attach a type which directs
the CPU to load a value from memory with a certain width - that's a
type -, like BYTE, WORD, DWORD, QWORD.

Rest of your nonsense unread.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<3eade2fd-a30d-4921-bde7-0405c994351en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18250&group=comp.lang.c#18250

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:134a:: with SMTP id b10mr5433849qvw.67.1631126759406;
Wed, 08 Sep 2021 11:45:59 -0700 (PDT)
X-Received: by 2002:a05:622a:1898:: with SMTP id v24mr5226981qtc.226.1631126759196;
Wed, 08 Sep 2021 11:45:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Wed, 8 Sep 2021 11:45:59 -0700 (PDT)
In-Reply-To: <shaspr$85v$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=108.48.119.9; posting-account=Ix1u_AoAAAAILVQeRkP2ENwli-Uv6vO8
NNTP-Posting-Host: 108.48.119.9
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me> <660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me> <1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me> <b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me> <90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<sgv66r$92c$1@dont-email.me> <3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>
<sh19q5$93n$1@dont-email.me> <0a4a7e41-ce98-4365-bf82-d0320e2875fdn@googlegroups.com>
<shaspr$85v$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3eade2fd-a30d-4921-bde7-0405c994351en@googlegroups.com>
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
From: jameskuy...@alumni.caltech.edu (james...@alumni.caltech.edu)
Injection-Date: Wed, 08 Sep 2021 18:45:59 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 40
 by: james...@alumni.calt - Wed, 8 Sep 2021 18:45 UTC

On Wednesday, September 8, 2021 at 1:44:40 PM UTC-4, Bonita Montero wrote:
> Am 07.09.2021 um 01:10 schrieb james...@alumni.caltech.edu:
> > On Saturday, September 4, 2021 at 10:25:22 PM UTC-4, Bonita Montero wrote:
> >> Am 04.09.2021 um 20:27 schrieb james...@alumni.caltech.edu:
> > On Thursday, September 2, 2021 at 2:28:11 PM UTC-4, james...@alumni.caltech.edu wrote:
> >> On Wednesday, September 1, 2021 at 11:37:37 PM UTC-4, Bonita Montero wrote:
....
> >>> Keep in mind that not being able to address bytes is the single most
> >>> common reason for having two or more different sizes of pointers.
> >> No, on the platforms where you don't have byte-pointers you almost never
> >> have typed pointers.
> >
> > Assembly language addresses aren't typed pointers. ...
>
> When you use a register as a pointer you attach a type which directs
> the CPU to load a value from memory with a certain width - that's a
> type -, like BYTE, WORD, DWORD, QWORD.

Agreed - the assembly language you showed uses a PTR keyword with a
specified type as part of the instruction syntax. But - and this is the most
important point - the implementations under discussion in this thread set
CHAR_BIT to a size smaller than the number of bits retrieved by any of the
available instructions on the platforms under discussion; either they don't have
a BYTE instruction modifier, or the size of the BYTE that they retrieve when that
modifier is used has more than CHAR_BIT bits, and therefore does not
correspond to the "byte" defined by the C implementation. This doesn't prevent
a C implementation targeting that platform from having [[un]signed] char*
and void* pointers. They are simply emulated in software, not implemented in
hardware. Getting back to the Subject: header for this thread, that emulation
may require sizeof(void*) > sizeof(int*).
Far less important is your misuse of the term "typed pointers", which means
something quite different; what you've described are typed instructions. C's
typed pointers are associated with declared objects, and not with the
operations performed on those objects. The type of a C pointer determines
which operations can safely be performed on it, rather than being determined
by which operation is performed on it.
You might be correct that such platforms don't have what you call "typed
pointers", and what I call "typed instructions". It only matters whether the C
implementation has what is more conventionally called a "typed pointer", as
it's required to have. Those can be emulated in software, whether or not the
platform has typed instructions.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<0818d3a7-4163-45a1-8596-d13e4b242678n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18253&group=comp.lang.c#18253

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:170a:: with SMTP id h10mr3380374qtk.327.1631201808338;
Thu, 09 Sep 2021 08:36:48 -0700 (PDT)
X-Received: by 2002:ae9:c115:: with SMTP id z21mr3239813qki.482.1631201808196;
Thu, 09 Sep 2021 08:36:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Thu, 9 Sep 2021 08:36:48 -0700 (PDT)
In-Reply-To: <sh8h3a$k9n$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=87.68.183.224; posting-account=ow8VOgoAAAAfiGNvoH__Y4ADRwQF1hZW
NNTP-Posting-Host: 87.68.183.224
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgokl2$h9j$1@dont-email.me> <zeRXI.35212$jl2.14440@fx34.iad>
<336d6d74-70c5-42a7-94d2-3a847a2d3ddan@googlegroups.com> <sh8h3a$k9n$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0818d3a7-4163-45a1-8596-d13e4b242678n@googlegroups.com>
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
From: already5...@yahoo.com (Michael S)
Injection-Date: Thu, 09 Sep 2021 15:36:48 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 17
 by: Michael S - Thu, 9 Sep 2021 15:36 UTC

On Tuesday, September 7, 2021 at 11:12:37 PM UTC+3, Vir Campestris wrote:
> On 01/09/2021 22:07, Michael S wrote:
> > I didn't yet encounter in real physical life a C programmer that cared in a slightest about portability or C Standard.
> > Only on Internet.
>
> Then I'm your first.
>

No, you are not.
I don't know you in real physical life.

> I write code for embedded devices that use three different processor
> families - ARM, MIPS and Intel.
>
> The chip manufacturers supply us with a Linux port and some other stuff
> I can't discuss, but our code has to be platform agnostic.
>
> Andy

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<shdf4f$d7i$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18257&group=comp.lang.c#18257

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Thu, 9 Sep 2021 19:09:34 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <shdf4f$d7i$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<sgv66r$92c$1@dont-email.me>
<3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>
<sh19q5$93n$1@dont-email.me>
<0a4a7e41-ce98-4365-bf82-d0320e2875fdn@googlegroups.com>
<shaspr$85v$1@dont-email.me>
<3eade2fd-a30d-4921-bde7-0405c994351en@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Sep 2021 17:09:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4e9354276e0c4e9be25cf4ee1089fff7";
logging-data="13554"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NfS/onXRmz7vPrUWuP7L+eXeC9TcbWiI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:ihszUNyPD5rVSm26wm3HCl7ZiFY=
In-Reply-To: <3eade2fd-a30d-4921-bde7-0405c994351en@googlegroups.com>
Content-Language: de-DE
 by: Bonita Montero - Thu, 9 Sep 2021 17:09 UTC

Am 08.09.2021 um 20:45 schrieb james...@alumni.caltech.edu:
> On Wednesday, September 8, 2021 at 1:44:40 PM UTC-4, Bonita Montero wrote:
>> Am 07.09.2021 um 01:10 schrieb james...@alumni.caltech.edu:
>>> On Saturday, September 4, 2021 at 10:25:22 PM UTC-4, Bonita Montero wrote:
>>>> Am 04.09.2021 um 20:27 schrieb james...@alumni.caltech.edu:
>>> On Thursday, September 2, 2021 at 2:28:11 PM UTC-4, james...@alumni.caltech.edu wrote:
>>>> On Wednesday, September 1, 2021 at 11:37:37 PM UTC-4, Bonita Montero wrote:
> ...
>>>>> Keep in mind that not being able to address bytes is the single most
>>>>> common reason for having two or more different sizes of pointers.
>>>> No, on the platforms where you don't have byte-pointers you almost never
>>>> have typed pointers.
>>>
>>> Assembly language addresses aren't typed pointers. ...
>>
>> When you use a register as a pointer you attach a type which directs
>> the CPU to load a value from memory with a certain width - that's a
>> type -, like BYTE, WORD, DWORD, QWORD.
>
> Agreed - the assembly language you showed uses a PTR keyword with a
> specified type as part of the instruction syntax. But - and this is the most
> important point - the implementations under discussion in this thread set
> CHAR_BIT to a size smaller than the number of bits retrieved by any of the
> available instructions on the platforms under discussion; ...

That's not what we're discussing here.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<d03fafac-ef10-4c87-a11f-89a5794cbe14n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18258&group=comp.lang.c#18258

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:624a:: with SMTP id w71mr4036681qkb.81.1631209892231;
Thu, 09 Sep 2021 10:51:32 -0700 (PDT)
X-Received: by 2002:ac8:4d8f:: with SMTP id a15mr4149332qtw.168.1631209892030;
Thu, 09 Sep 2021 10:51:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Thu, 9 Sep 2021 10:51:31 -0700 (PDT)
In-Reply-To: <shdf4f$d7i$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=108.48.119.9; posting-account=Ix1u_AoAAAAILVQeRkP2ENwli-Uv6vO8
NNTP-Posting-Host: 108.48.119.9
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me> <660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me> <1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me> <b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me> <90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<sgv66r$92c$1@dont-email.me> <3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>
<sh19q5$93n$1@dont-email.me> <0a4a7e41-ce98-4365-bf82-d0320e2875fdn@googlegroups.com>
<shaspr$85v$1@dont-email.me> <3eade2fd-a30d-4921-bde7-0405c994351en@googlegroups.com>
<shdf4f$d7i$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d03fafac-ef10-4c87-a11f-89a5794cbe14n@googlegroups.com>
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
From: jameskuy...@alumni.caltech.edu (james...@alumni.caltech.edu)
Injection-Date: Thu, 09 Sep 2021 17:51:32 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 18
 by: james...@alumni.calt - Thu, 9 Sep 2021 17:51 UTC

On Thursday, September 9, 2021 at 1:09:48 PM UTC-4, Bonita Montero wrote:
> Am 08.09.2021 um 20:45 schrieb james...@alumni.caltech.edu:
....
> > Agreed - the assembly language you showed uses a PTR keyword with a
> > specified type as part of the instruction syntax. But - and this is the most
> > important point - the implementations under discussion in this thread set
> > CHAR_BIT to a size smaller than the number of bits retrieved by any of the
> > available instructions on the platforms under discussion; ...
>
> That's not what we're discussing here.

Such systems are the only ones I've been discussing on this thread from the
very beginning, because such systems are the only ones I'm aware of where
sizeof(void*) > sizeof(int*), as specified in the Subject: header. To the best of
my knowledge, the same is true of the other participants in this discussion
(though in some cases they've been less than clear about the matter). Why
do you keep changing the subject by talking about some other kind of
system? How are the systems you were discussing relevant to the Subject:
header?

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<shf55c$9jn$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18259&group=comp.lang.c#18259

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
Date: Fri, 10 Sep 2021 10:31:40 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <shf55c$9jn$1@dont-email.me>
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me>
<660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me>
<1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me>
<b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me>
<90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<sgv66r$92c$1@dont-email.me>
<3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>
<sh19q5$93n$1@dont-email.me>
<0a4a7e41-ce98-4365-bf82-d0320e2875fdn@googlegroups.com>
<shaspr$85v$1@dont-email.me>
<3eade2fd-a30d-4921-bde7-0405c994351en@googlegroups.com>
<shdf4f$d7i$1@dont-email.me>
<d03fafac-ef10-4c87-a11f-89a5794cbe14n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 10 Sep 2021 08:31:40 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9b357872e946f6280df0ce948eae707c";
logging-data="9847"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LthsW7U1pND/xXF6uRYojXYoaTp+4yA0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:4X3q6ZqCQWuafN2cVL2hIlozADQ=
In-Reply-To: <d03fafac-ef10-4c87-a11f-89a5794cbe14n@googlegroups.com>
Content-Language: de-DE
 by: Bonita Montero - Fri, 10 Sep 2021 08:31 UTC

Am 09.09.2021 um 19:51 schrieb james...@alumni.caltech.edu:
> On Thursday, September 9, 2021 at 1:09:48 PM UTC-4, Bonita Montero wrote:
>> Am 08.09.2021 um 20:45 schrieb james...@alumni.caltech.edu:
> ...
>>> Agreed - the assembly language you showed uses a PTR keyword with a
>>> specified type as part of the instruction syntax. But - and this is the most
>>> important point - the implementations under discussion in this thread set
>>> CHAR_BIT to a size smaller than the number of bits retrieved by any of the
>>> available instructions on the platforms under discussion; ...
>>
>> That's not what we're discussing here.
>
> Such systems are the only ones I've been discussing on this thread from the
> very beginning, ...

Discuss this at a different point in this thread where it fits.

Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

<50e78716-9214-4876-953e-d7e9039f003en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18284&group=comp.lang.c#18284

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:2909:: with SMTP id m9mr9014374qkp.77.1631295711429;
Fri, 10 Sep 2021 10:41:51 -0700 (PDT)
X-Received: by 2002:a05:620a:4001:: with SMTP id h1mr8910986qko.454.1631295711253;
Fri, 10 Sep 2021 10:41:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 10 Sep 2021 10:41:51 -0700 (PDT)
In-Reply-To: <shf55c$9jn$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=108.48.119.9; posting-account=Ix1u_AoAAAAILVQeRkP2ENwli-Uv6vO8
NNTP-Posting-Host: 108.48.119.9
References: <sgglb9$c02$1@dont-email.me> <sgk5v9$aik$1@dont-email.me>
<ip62ekFsc6mU1@mid.individual.net> <sgn0j7$999$1@dont-email.me>
<u2NXI.17687$F26.16281@fx44.iad> <sgocps$nqd$1@dont-email.me>
<sgoe5r$2rv$1@dont-email.me> <sgoh8e$ntj$1@dont-email.me> <660d702c-53f9-4c4f-b746-7045c0dc8b7bn@googlegroups.com>
<sgpgtm$ft7$1@dont-email.me> <1b0fddb0-ead0-46b7-acd6-fcd629cea2b3n@googlegroups.com>
<sgsao1$ie0$1@dont-email.me> <b269912f-21e1-4c16-9bb1-efcd6954453en@googlegroups.com>
<sgtdf2$g6v$1@dont-email.me> <90a43fde-5b57-48a6-ac61-c11b16f1425an@googlegroups.com>
<sgv66r$92c$1@dont-email.me> <3e70e36f-7752-4bc9-8ce0-fc9a149aaaaan@googlegroups.com>
<sh19q5$93n$1@dont-email.me> <0a4a7e41-ce98-4365-bf82-d0320e2875fdn@googlegroups.com>
<shaspr$85v$1@dont-email.me> <3eade2fd-a30d-4921-bde7-0405c994351en@googlegroups.com>
<shdf4f$d7i$1@dont-email.me> <d03fafac-ef10-4c87-a11f-89a5794cbe14n@googlegroups.com>
<shf55c$9jn$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <50e78716-9214-4876-953e-d7e9039f003en@googlegroups.com>
Subject: Re: Examples of current platforms/architectures where sizeof(void*) >
sizeof(int*) ?
From: jameskuy...@alumni.caltech.edu (james...@alumni.caltech.edu)
Injection-Date: Fri, 10 Sep 2021 17:41:51 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 53
 by: james...@alumni.calt - Fri, 10 Sep 2021 17:41 UTC

On Friday, September 10, 2021 at 4:31:54 AM UTC-4, Bonita Montero wrote:
> Am 09.09.2021 um 19:51 schrieb james...@alumni.caltech.edu:
> > On Thursday, September 9, 2021 at 1:09:48 PM UTC-4, Bonita Montero wrote:
> >> Am 08.09.2021 um 20:45 schrieb james...@alumni.caltech.edu:
> > ...
> >>> Agreed - the assembly language you showed uses a PTR keyword with a
> >>> specified type as part of the instruction syntax. But - and this is the most
> >>> important point - the implementations under discussion in this thread set
> >>> CHAR_BIT to a size smaller than the number of bits retrieved by any of the
> >>> available instructions on the platforms under discussion; ...
> >>
> >> That's not what we're discussing here.
> >
> > Such systems are the only ones I've been discussing on this thread from the
> > very beginning, ...
>
> Discuss this at a different point in this thread where it fits.

Every message on this thread other than yours has been directly or indirectly
about the Subject: header, "sizeof(void*)>sizeof(int*)", for which platforms that
are not byte-addressable are entirely relevant, because such systems are the
only types of platforms for which anybody has even suggested that such
implementations might exist. There might be other reasons for having
"sizeof(void*)>sizeof(int*)", but no other reasons have been discussed in this
thread.
David mentioned such platforms in his message of September 1st. You
responded by claiming they are nearly non-existent, and he responded by
identifying some current ones, to which you responded:

> The issue is not about whether they're can't address raw bytes but just
> larger quantities. The issue is about machines with typed pointers, i.e.
> when you cast a pointer they change their bit-representation

Every message you've posted since then has reflected that
misconception, and is therefore an appropriate opportunity to point out
that it is a misconceptions, as I have been doing.

Platforms where raw bytes cannot be addressed are the only ones
anyone has identified as possibly supporting C implementations with
two or more different pointer representations with different sizes. If you
know of any other reasons why an implementation might have multiple
pointer sizes, that's fine, but it does not render those platforms irrelevant.
Do you know of any machines with typed pointers that have C
implementations where "sizeof(void*)>sizeof(int*)"? If so, identifying
such machines would be extremely relevant to this thread.
However, claiming that all machines that are not byte addressable lack
typed pointers is irrelevant. It is not the hardware pointers that matter,
but the pointers supported by the C implementation. A C implementation
for a platform that cannot address individual bytes, can still implement C
pointers that address bytes, with a representation that is meaningless to
the hardware; and those pointers might be larger than the ones that only
need to address larger memory units. Whether or not that platform
supports typed pointers is irrelevant - it only matters whether the C
implementation does so.


devel / comp.lang.c / Re: Examples of current platforms/architectures where sizeof(void*) > sizeof(int*) ?

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor