News for hackers. Stuff that matters.
Re:C pointers are not hardware pointers by TheCoelacanth on Monday March 07, 2016 @10:47AM (#11239475)
Did you miss the part where two pointers with identical bit patterns can compare not equal? E.g. in recent versions of gcc

    #include <stdio.h>

    int main(void)
    {
        int x, y;
        int *p = &x + 1;
        int *q = &y;
        printf("%p %p %d\n", p, q, p == q);
        return 0;
    }
prints

    0x7f7fffffdafc 0x7f7fffffdafc 0
Re:C pointers are not hardware pointers by botw on Monday March 07, 2016 @06:02PM (#11242440)
This is interesting. If this is true, then a lot of code based on the assumption p == q would be broken.