[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Re: data alignment is now possible
From: |
SiTex Graphics |
Subject: |
[Gm2] Re: data alignment is now possible |
Date: |
Thu, 17 Jun 2010 17:58:23 -0400 |
Thanks. That will be handy.
I see now that my original question was poorly worded. What I was
really after is a way to pack fields in a record as tightly as
possible. Both XDS and StonyBrook have a global option for that.
Here's a simple example (source code attached). With the following
type declaration:
Test = RECORD
a : CARDINAL8;
b : CARDINAL32;
c : CARDINAL8;
END;
GM2 reports SIZE(Type) as 12, whereas StonyBrook and XDS report 6 with
packed field alignment. With the other compilers changing the field
alginment does not require modificiation of the source code, and that
would be highly desirable. Maybe there's already a gcc-based
command-line option for field alignment?
In any case the ability to specify variable alignment will be useful
in its own right.
Thanks,
Scott
On Tue, Jun 15, 2010 at 2:35 PM, Gaius Mulley <address@hidden> wrote:
>
> On Thu, 8 Oct 2009 19:15:32 -0400 Scott wrote:
>
>> Another question: is there a way to specify the data alignment of a
>> record type?
>
> Hi Scott,
>
> yes, this is now implemented in the latest cvs! I've checked in some
> alignment regression tests and they all pass, these examples are also
> in the documentation to give an idea of how they might be used:
>
> http://www.nongnu.org/gm2/gm2.html#SEC27
>
> regards,
> Gaius
>
size.mod
Description: audio/mod
- [Gm2] data alignment is now possible, Gaius Mulley, 2010/06/15
- Re: [Gm2] data alignment is now possible, Iztok Kobal, 2010/06/16
- [Gm2] Re: data alignment is now possible,
SiTex Graphics <=
- [Gm2] Re: data alignment is now possible, Gaius Mulley, 2010/06/19
- Re: [Gm2] Re: data alignment is now possible, Iztok Kobal, 2010/06/21
- Re: [Gm2] Re: data alignment is now possible, SiTex Graphics, 2010/06/22
- Re: [Gm2] Re: data alignment is now possible, Fischlin Andreas, 2010/06/23
- Re: [Gm2] Re: data alignment is now possible, Fischlin Andreas, 2010/06/23
- Re: [Gm2] Re: data alignment is now possible, Fischlin Andreas, 2010/06/23
- [Gm2] Re: data alignment is now possible, john o goyo, 2010/06/24
- Re: [Gm2] Re: data alignment is now possible, Fischlin Andreas, 2010/06/25