Top "Strict-aliasing" questions

Strict aliasing is an assumption, made by the C or C++ compiler, that de-referencing pointers to objects of different types will never refer to the same memory location (i.e. they will not alias each other).

In C++, should I bother to cache variables, or let the compiler do the optimization? (Aliasing)

Consider the following code (p is of type unsigned char* and bitmap->width is of some integer type, exactly …

c++ performance caching optimization strict-aliasing
C99 strict aliasing rules in C++ (GCC)

As far as I understand, GCC supports all of its C99 features in C++. But how is C99 strict aliasing …

c++ c gcc strict-aliasing