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.
Pointers have provenance, integers don't.
2018, and some of the comments are already outdated, SPARK 2014 is out there with ownership model.
Context.
well, their names, for starters...
There is no difference.
Yes, I'm a C programmer, how did you know?
It doesn't sound like you are or you would know C doesn't define either precisely enough to make that statement true.
You should read TFA.
8 comments:
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.
Pointers have provenance, integers don't.
2018, and some of the comments are already outdated, SPARK 2014 is out there with ownership model.
Context.
well, their names, for starters...
There is no difference.
Yes, I'm a C programmer, how did you know?
It doesn't sound like you are or you would know C doesn't define either precisely enough to make that statement true.
You should read TFA.