something to warry about...

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sun Jan 16 22:45:03 UTC 2011


On Sun, 16 Jan 2011, Denys Vlasenko wrote:
> On Sunday 16 January 2011 22:58, Douglas Mencken wrote:
> > Here - only using union.
>
> Can you show me *the code* how to do it?
>
> Any ways to do it *I* see are so ugly
> I don't dare to post them.
>
> > You know, casting pointers doesn't mean that
> > they point to the same area. And doing something like
> > my_super_data_type* ptr = (void*)blah is obviously a way to void.

What about the articles Douglas posted?

On Sat, 15 Jan 2011, Douglas Mencken wrote:
>
> Understanding Strict Aliasing:
> http://cellperformance.beyond3d.com/articles/2006/06/understanding-strict-aliasing.html
> Strict aliasing in C: http://xania.org/200712/cpp-strict-aliasing
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I'm not a C-expert, but there seems to be something there that makes
sense, does it not?


Cheers,

-- 
Cristian


More information about the busybox mailing list