What's the difference between an integer and a pointer?
34 points by germanrabbit 3 days ago | 9 comments

glitchc 12 minutes ago
I don't think GCC is doing something special, rather that -O3 might be optimizing out the subtraction. Try with -O0, I suspect you will get the same result as clang.
reply
bryanlarsen 21 minutes ago
Pointers have provenance, integers don't.
reply
pjmlp 48 minutes ago
2018, and some of the comments are already outdated, SPARK 2014 is out there with ownership model.
reply
hn_submit 29 minutes ago
Context.
reply
spwa4 17 minutes ago
There is no difference.

Yes, I'm a C programmer, how did you know?

reply
Ohentis 7 minutes ago
It doesn't sound like you are or you would know C doesn't define either precisely enough to make that statement true.
reply
Ungh 23 seconds ago
There's the voice of a C programmer who hasn't used hardware with a different word size to address space...
reply
drfloyd51 13 minutes ago
You should read TFA.
reply
stronglikedan 13 minutes ago
well, their names, for starters...
reply