News for hackers. Stuff that matters.
Re:Pointers Are More Abstract Than You Might Expect in C by saagarjha on Monday July 02, 2018 @01:49PM (#17443852)
Why not? As long as your program is standards-compliant, it should work on any computer with a working C compiler…
Re:Pointers Are More Abstract Than You Might Expect in C by hexane360 on Monday July 02, 2018 @04:10PM (#17444939)
- integral sizes aren't standard

- little vs big endian

- signed int layout

- float layout

- includes vary

- bit field implementations vary

- loads of undefined and implementation-defined behavior

Re:Pointers Are More Abstract Than You Might Expect in C by saagarjha on Tuesday July 03, 2018 @04:07AM (#17448361)
The only thing that can change is implementation-defined behavior, and this can be detected and guarded against. Undefined behavior cannot exist in a standards-compliant program.