Comment

Comment by gshrikant

I'm curious, AFAICT Linux uses -fno-strict-aliasing with GCC which promises not to enable strict aliasing based optimizations even at higher optimization levels. But they also rely on the GCC blessed behavior of union based type punning which is redundant in that case.

I suppose union based type punning makes the intent a little clearer (vis a vis memcpy) but that's a weak argument at best.

parent gshrikant 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton