Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Frank Peters <frank.peters@...>
Subject: Re: Re: GCC-4.5.2 Has Serious Problems
Date: Fri, 1 Jul 2011 12:53:32 -0400
On Fri, 01 Jul 2011 14:53:45 +0300
Nikos Chantziaras <realnc@...> wrote:

> 
> You can alias them with a char* (a char pointer can alias everything in 
> a valid and defined manner).  What you do is use the char* to scan over 
> the target type.  And since a char is always guaranteed to be 8 bits, 
> it's very suited for doing endian conversions.
> 

Yes, that's true, but in my case another concern was having data
that is more easily human readable.  A text file full of single-byte
data is harder to read than a file with full 64 or 32 bit strings.

For endian conversions, though, the char pointer is recommended.

But with the availability of the "-fno-strict-aliasing" option it
doesn't seem to matter which method is chosen.



References:
GCC-4.5.2 Has Serious Problems
-- Frank Peters
Re: GCC-4.5.2 Has Serious Problems
-- Nikos Chantziaras
Re: GCC-4.5.2 Has Serious Problems
-- Nikos Chantziaras
Re: Re: GCC-4.5.2 Has Serious Problems
-- Frank Peters
Re: GCC-4.5.2 Has Serious Problems
-- Nikos Chantziaras
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: GCC-4.5.2 Has Serious Problems
Next by thread:
Re: Re: GCC-4.5.2 Has Serious Problems
Previous by date:
Re: GCC-4.5.2 Has Serious Problems
Next by date:
Glibc Update Breaks Open/LibreOffice -- Can't Downgrade


Updated Jun 28, 2012

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.