[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How many bytes?
- Date: Tue, 16 Sep 2003 05:59:53 -0500
- From: joel.sherrill at OARcorp.com (Joel Sherrill)
- Subject: How many bytes?
shannon wrote:
>There are four 32-bit members in structure Heap_Block, but the size of Heap_Block is 8. Why? Does the 8 mean 8*8-bit or 8*16-bit or 8*32-bit.
>
>
There are two 32-bit values required to managed a block in the heap when
it is
free or in use. It takes 2 more to manage it when it is free. So you end up
with a minimum heap block size of 8 bytes out of 16 bytes used.
>
>
>????????shannon
>????????zhou_xingjian at 163.com
>??????????2003-09-16
>
>
>
>