This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: data alignment
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