From: Andreas Tobler <toa@pop.agri.ch>
To: Andrew Haley <aph@redhat.com>
Cc: Piotr Wyderski <piotr.wyderski@hoga.pl>, gcc@gcc.gnu.org
Subject: Re: __attribute__ ((aligned)) weirdness
Date: Tue, 18 Mar 2003 22:34:00 -0000 [thread overview]
Message-ID: <3E778C1B.8070203@pop.agri.ch> (raw)
In-Reply-To: <15991.31521.926999.664353@cuddles.cambridge.redhat.com>
Andrew Haley wrote:
> Piotr Wyderski writes:
> > > So you have a field at offset 4. You ask for it to be 4-aligned, and
> > > it jumps to offset 8.
> > >
> > > What is going on?
> >
> > The alignment of x means that the offset of a variable is divisible
> > by x with no remainder. Each y=x*2^n (where n is natural) is
> > a good alignment too, because f mod y = 0 => f mod x = 0;
> > 8-aligned field is also 4-aligned. So where's the problem?
>
> I need to know why this happens.
Could this be related? No explanation, sorry.
http://gcc.gnu.org/ml/gcc/2003-02/msg00353.html
Andreas
next prev parent reply other threads:[~2003-03-18 21:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-18 16:16 g++: " Andrew Haley
2003-03-18 20:24 ` Piotr Wyderski
2003-03-18 20:28 ` Andrew Haley
2003-03-18 22:34 ` Andreas Tobler [this message]
2003-04-08 8:01 ` PPC support in GCC ? A.R. Ashok Kumar
2003-04-08 14:45 ` Falk Hueffner
2003-04-08 14:51 ` A.R. Ashok Kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E778C1B.8070203@pop.agri.ch \
--to=toa@pop.agri.ch \
--cc=aph@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=piotr.wyderski@hoga.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).