This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: default alignment
- From: Richard Earnshaw <Richard dot Earnshaw at foss dot arm dot com>
- To: Andrew Haley <aph at redhat dot com>, Pawel Por <porparek at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Mon, 15 Jun 2015 15:43:38 +0100
- Subject: Re: default alignment
- Authentication-results: sourceware.org; auth=none
- References: <CAJmOuEzhMXjibG=NJS3MWE+kRobPfuxB4v1zVif8Y+qykqXguQ at mail dot gmail dot com> <557EE3DC dot 9060508 at redhat dot com>
On 15/06/15 15:40, Andrew Haley wrote:
> On 06/15/2015 03:38 PM, Pawel Por wrote:
>> Does gcc guarantee that "var" will be aligned on 4-byte boundary on
>> x86 (32/64) architectures ?
>
> Yes.
>
> Andrew.
>
Provided "var" exists in memory... It could live entirely in a register
with this program (or not exist at all, given it's never used).
R.