lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

Sokolov Yura wrote:
> I just test one script(which creates hundred of thousands of tables) 
> with type(flags) = lu_bute, lu_int32 and lu_usint(unsigned short int) 
> (and also made printf("%d",sizeof(Table)):
>   lu_byte  - max 169MB  sizeof(Table)=36
>   lu_int32 - max 195MB  sizeof(Table)=40
>   lu_usint - max 169MB  sizeof(Table)=36

No, this doesn't look correct. I get:

  lu_byte  -> sizeof(Table) = 32
  lu_usint -> sizeof(Table) = 36

(on x86 with GCC)

Maybe you have modified the source elsewhere (CommonHeader?).

Bye,
     Mike