[M3devel] 32bit host 64bit target TextLiteral recurring problem

Rodney M. Bates rodney_bates at lcwb.coop
Fri Jun 5 00:24:26 CEST 2015



On 06/04/2015 12:46 PM, mika at async.caltech.edu wrote:
>> (Actually, BITS does the same thing when used as the type of an array element, but cases where this
>> matters are rare.  If the bit count evenly divides the word size, there won't be any alignment padding
>> needed, and BITS won't matter.  Otherwise, the compiler is likely to refuse, unless the entire array
>> fits in a single machine word.  I do have a couple of such cases.)
>
> For a lot of hardware-related problems, the following type is quite useful:
>
> ARRAY [..] OF BITS 1 FOR BOOLEAN
>
> (and works with our compilers, too, as far as I know.)
>


Yeah, I forgot about that group of cases.  Without a BITS spec, the only sizes the compiler
will choose are 64, 32, 16, or 8.  If you want 4, 2, or 1, or something else that doesn't
divide 32, you have to use BITS.  But they will work fine.

>      Mika
>

-- 
Rodney Bates
rodney.m.bates at acm.org



More information about the M3devel mailing list