[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Generating better i386 code
From: |
Daniel Glöckner |
Subject: |
Re: [Tinycc-devel] Generating better i386 code |
Date: |
Fri, 27 Sep 2013 08:54:49 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, Sep 27, 2013 at 11:21:19AM +1000, Jason Hood wrote:
> On 26/09/2013 16:30, Daniel Glöckner wrote:
> > On Thu, Sep 26, 2013 at 03:39:45PM +1000, Jason Hood wrote:
> >> * 4- & 8-byte structs copy as int/long long (all targets);
> >
> > did you check if the structure is aligned to a multiple of 4 bytes?
> > Otherwise it will crash on ARM.
>
> No, as I thought structures of these sizes would already be
> aligned (as if they were int or long long). Is that not
> necessarily the case?
No,
struct {
char x[4];
}
has an alignment of 1 byte.
Daniel