[M3devel] representation of enums?

Tony Hosking hosking at cs.purdue.edu
Mon Sep 13 02:44:49 CEST 2010


On 12 Sep 2010, at 20:33, Jay K wrote:

> 
> How are enums represented?
> 
> As the smallest of 8, 16, 32 bit unsigned integer that can hold all the values?

Stored, yes.  All operations  on enum are as INTEGER.

> An enum with 128 or 255 values -- 8 bits or 16?
> I assume 8.

8

> Packable into fewer bits, if they fit presumably.

BITS FOR, yes.

> 
>  - Jay
> 
> 
> 
> 
> 		 	   		  




More information about the M3devel mailing list