On Monday 11 November 2013 22:25:07 Sieghard wrote:

> My previous egregious example
>
>   Register = RECORD
>                Field_1: 0..77;
>                Field_2: 1..3;
>                Field_3: 5..25;
>                Field_4: 111..112;
>                Field_5: -2..-1;
>              END;
>
> might thus be specified like this:
>
> TYPE
>   Basevalue = 0..77;
>   Selector =  1..3;
>   FiveStep = 5, 10, 15, 20, 25;  { or just 5..25; }
>   { maybe allow for incompletely populated subranges as well? }
>   HighEnd = 111..112;
>   LowEnd = -2..-1;
>
>   Register = RECORD
>                Field_1: Basevalue: 7;
>                Field_2: Selector:  2;
>                Field_3: FiveStep:  5;
>                Field_4: HighEnd:   1;
>                Field_5: LowEnd:    1;
>              END;
>
The C-like syntax
"
 FIELDNAME ':' FIELDTYPE [':' BITSIZE] ';'
"
is accepted?
Is a record with BITSIZE automatically bitpacked? Is
"
'type'
 TYPENAME '=' RANGEMIN '..' RANGEMAX [':' BITSIZE] ';'
"
accepted too? Defining of little/big-endian could be useful too.

Martin

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to