Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #70302

Re: What does the "L" mean

From Vir Campestris <vir.campestris@invalid.invalid>
Newsgroups comp.lang.c++
Subject Re: What does the "L" mean
Date 2019-12-06 10:59 +0000
Organization A noiseless patient Spider
Message-ID <qsdcb3$soh$2@dont-email.me> (permalink)
References (6 earlier) <qs7tog$2hu$1@dont-email.me> <qs99g5$7rs$1@dont-email.me> <875zivzhd9.fsf@bsb.me.uk> <qsb6v7$u8q$3@dont-email.me> <87zhg6yekm.fsf@bsb.me.uk>

Show all headers | View raw


On 05/12/2019 15:31, Ben Bacarisse wrote:
> Vir Campestris<vir.campestris@invalid.invalid>  writes:
> 
>> On 05/12/2019 01:33, Ben Bacarisse wrote:
>>> Vir Campestris<vir.campestris@invalid.invalid>  writes:
>>> <cut>
>>>> The one that really strained C was the one where incrementing a
>>>> pointer by 1 went to the next bit. Not byte or word. (TI GPU)
>>> What problems does C have on a bit-addressed machine?
>> Code that assumes you can copy a pointer into a number, then
>> manipulate it. Lots of people do it, even though they shouldn't.
> That also should work on a bit-addressed machine.  You mean, I think,
> that the code assumes some very specific things about the manipulation,
> most probably that (int)(p + 1) == (int)p + sizeof *p.

You could write code that worked on that TI chip, making assumptions 
about the way the addresses work.

You could also write code that works on the 99% of machines where

char vec[2];
assert(((int)&vec[1] - (int)vec) == 1);

works.

BTW the Dec10 - the 36 bit one I used - an int was 36 bits, but a 
character string was stored as set of 5 7-bit ASCII characters plus one 
pad bit in each word... Never used C on it though.

Andy

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

What does the "L" mean T <T@invalid.invalid> - 2019-12-03 23:38 -0800
  Re: What does the "L" mean Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-04 08:43 +0100
    Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 00:05 -0800
      Re: What does the "L" mean Geoff <geoff@invalid.invalid> - 2019-12-04 00:32 -0800
        Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 00:33 -0800
        Re: What does the "L" mean Paavo Helde <myfirstname@osa.pri.ee> - 2019-12-04 11:11 +0200
          Re: What does the "L" mean Geoff <geoff@invalid.invalid> - 2019-12-04 01:14 -0800
      Re: What does the "L" mean "Fred. Zwarts" <F.Zwarts@KVI.nl> - 2019-12-04 09:39 +0100
        Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 00:51 -0800
      Re: What does the "L" mean Paavo Helde <myfirstname@osa.pri.ee> - 2019-12-04 10:40 +0200
        Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 00:56 -0800
          Re: What does the "L" mean Bo Persson <bo@bo-persson.se> - 2019-12-04 10:08 +0100
            Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 01:20 -0800
              Re: What does the "L" mean Vir Campestris <vir.campestris@invalid.invalid> - 2019-12-04 21:46 +0000
                Re: What does the "L" mean Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-12-05 01:33 +0000
                Re: What does the "L" mean Vir Campestris <vir.campestris@invalid.invalid> - 2019-12-05 15:15 +0000
                Re: What does the "L" mean Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-12-05 15:31 +0000
                Re: What does the "L" mean Vir Campestris <vir.campestris@invalid.invalid> - 2019-12-06 10:59 +0000
                Re: What does the "L" mean Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-12-07 03:55 +0000
                Re: What does the "L" mean James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-12-06 23:38 -0500
                Re: What does the "L" mean Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-12-06 22:36 -0800
                Re: What does the "L" mean Vir Campestris <vir.campestris@invalid.invalid> - 2019-12-08 21:33 +0000
                Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-06 20:44 +0000
                Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-06 20:52 +0000
                Re: What does the "L" mean Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-12-06 22:20 -0800
        Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-06 16:20 +0000
          Re: What does the "L" mean boltar@nowhere.co.uk - 2019-12-06 16:30 +0000
            Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-06 17:50 +0000
              Re: What does the "L" mean scott@slp53.sl.home (Scott Lurndal) - 2019-12-06 18:18 +0000
              Re: What does the "L" mean boltar@nowhere.co.uk - 2019-12-07 11:57 +0000
                Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-07 12:04 +0000
                Re: What does the "L" mean boltar@nowhere.co.uk - 2019-12-07 13:05 +0000
                Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-07 13:16 +0000
                Re: What does the "L" mean Öö Tiib <ootiib@hot.ee> - 2019-12-07 05:49 -0800
          Re: What does the "L" mean scott@slp53.sl.home (Scott Lurndal) - 2019-12-06 16:36 +0000
      Re: What does the "L" mean Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-04 13:47 +0100
        Re: What does the "L" mean Thiago Adams <thiago.adams@gmail.com> - 2019-12-04 04:57 -0800
        Re: What does the "L" mean "Fred. Zwarts" <F.Zwarts@KVI.nl> - 2019-12-04 14:41 +0100
          Re: What does the "L" mean Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-04 15:06 +0100
        Re: What does the "L" mean James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-12-04 08:55 -0500
    Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 00:34 -0800
  Re: What does the "L" mean Keith Thompson <kst-u@mib.org> - 2019-12-04 08:28 -0800
    Re: What does the "L" mean Robert Wessel <robertwessel2@yahoo.com> - 2019-12-05 09:32 -0600
      Re: What does the "L" mean Keith Thompson <kst-u@mib.org> - 2019-12-05 10:03 -0800

csiph-web