mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Mention the "first-fit bin packing" algorithm of RGBLINK
This commit is contained in:
@@ -178,8 +178,10 @@ When making a ROM, note that not using this is not a replacement for
|
|||||||
option!
|
option!
|
||||||
.El
|
.El
|
||||||
.Ss Scrambling algorithm
|
.Ss Scrambling algorithm
|
||||||
The default section placement algorithm tries to minimize the number of banks used;
|
The default section placement algorithm tries to place sections into as few banks as possible.
|
||||||
.Dq scrambling
|
(It uses a variation of the "first-fit bin packing" algorithm to do so, although nothing is guaranteed about where it will place any particular section beyond the bank, address, and alignment constraints manually specified for the section.)
|
||||||
|
.Pp
|
||||||
|
.Dq Scrambling
|
||||||
instead places sections into a given pool of banks, trying to minimize the number of sections sharing a given bank.
|
instead places sections into a given pool of banks, trying to minimize the number of sections sharing a given bank.
|
||||||
This is useful to catch broken bank assumptions, such as expecting two different sections to land in the same bank (that is not guaranteed unless both are manually assigned the same bank number).
|
This is useful to catch broken bank assumptions, such as expecting two different sections to land in the same bank (that is not guaranteed unless both are manually assigned the same bank number).
|
||||||
.Pp
|
.Pp
|
||||||
|
|||||||
Reference in New Issue
Block a user