public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Silvio Bandeira <silvio@dei.unicap.br>
To: gcc <gcc@gcc.gnu.org>
Subject: Re: data alignment
Date: Wed, 13 Sep 2000 12:12:00 -0000	[thread overview]
Message-ID: <39BFDF88.3635E82D@dei.unicap.br> (raw)
In-Reply-To: <20000912205221.27502@cse.cygnus.com>

Thanks for your reply.
Although there's no 'clean' method, do you know how can I make the
#pragma work?

I've seen some macros I could define but none of them work: here we go:
#define HANDLE_PRAGMA 1
#define HANDLE_SYSV_PRAGMA 1
#define BIGGEST_ALIGNMENT  8
#define BIGGEST_FIELD_ALIGNMENT  8
#define STRICT_ALIGNMENT 1

Michael Meissner wrote:

> There is no 'clean' method of doing this.  In fact, many compilers offer no
> means of overriding the default packing rules.  Also note, that you can't even
> be guaranteed that an unsigned char is 8 bits (though it will be true in many
> machines, but not all, including some machines that GCC targets).
>
> --
> Michael Meissner, Red Hat, Inc.
> PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
> Work:     meissner@redhat.com           phone: +1 978-486-9304
> Non-work: meissner@spectacle-pond.org   fax:   +1 978-692-4482

--
Silvio Bandeira
UNICAP - Dept. of Computer Science

  reply	other threads:[~2000-09-13 12:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-12 13:33 Silvio Bandeira
2000-09-12 17:52 ` Michael Meissner
2000-09-13 12:12   ` Silvio Bandeira [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-09-13 21:24 Peeter Joot/Toronto/IBM
2000-09-07  0:46 Data alignment Silvio Bandeira
2000-09-07  9:57 ` David Edelsohn

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=39BFDF88.3635E82D@dei.unicap.br \
    --to=silvio@dei.unicap.br \
    --cc=gcc@gcc.gnu.org \
    /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).