kopia lustrzana https://github.com/micropython/micropython
Updated Memory Manager (markdown)
rodzic
9d17aa316b
commit
699262d42a
|
@ -29,13 +29,9 @@ Memory is split up into 4 Allocation Tables. Every Allocation Table has a `ATB`
|
|||
These are known as `ATB_0` through `ATB_3` and have several C methods (i.e. functions and macros) to access their attributes. These include:
|
||||
|
||||
BLOCKS_PER_ATB -- The number of ATB's that fit in an Allocation Table
|
||||
ATB_MASK_0 -- Get the relevant bytes for ATB_0
|
||||
...
|
||||
ATB_MASK_3
|
||||
ATB_MASK_N -- Get the relevant bytes for ATB table N
|
||||
|
||||
ATB_0_IS_FREE(a) -- Determine whether table is currently free
|
||||
...
|
||||
ATB_3_IS_FREE(a)
|
||||
ATB_N_IS_FREE(a) -- Determine whether table N is currently free
|
||||
|
||||
**What do these do? Why are they useful???**
|
||||
BLOCK_SHIFT(block)
|
||||
|
|
Ładowanie…
Reference in New Issue