?

Log in

No account? Create an account
GCU Dancer on the Midway
Paul Wright's blog
Link blog: C, punning, programming, casting 
5th Jan 2019, 01:13 am
giles
Type punning isn’t funny: Using pointers to recast in C is bad.
A common C programming technique (casting between pointers to structures) leads to problems when strict aliasing is turned on (as it is if you set -O2 -O3 in gcc).
(tags: C programming casting punning)
Type Punning, Strict Aliasing, and Optimization – Embedded in Academia
More on the type punning/aliasing business.
(tags: C punning aliasing programming)

Originally posted at Name and Nature. You can comment there. There are currently comments.
This page was loaded Jul 24th 2019, 6:50 am GMT.