guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unaligned memory accesses


From: Kevin Ryde
Subject: Re: Unaligned memory accesses
Date: Thu, 06 Sep 2007 09:04:47 +1000
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

address@hidden (Ludovic Courtès) writes:
>
> No it can't.  AFAICS, there's nothing in the C standard forcing fields
> of unions to be stored at offset zero when said fields have different
> sizes.

Union elements start at the start of the combined space.  In particular
if the elements are structs with common initial fields then any of them
can be used to access those common fields (no matter which one it was
that was stored to).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]