You copied the Doc URL to your clipboard.

ARM Compiler armlink User Guide : Prioritization of .ANY sections

Prioritization of .ANY sections

You can give a priority ordering if you have multiple .ANY sections.

Prioritize the order of multiple .ANY sections with the .ANYnum selector, where num is a positive integer from zero upwards.

The highest priority is given to the selector with the highest integer.

The following example shows how to use .ANYnum:

lr1 0x8000 1024
{
    er1 +0 512
    {
        .ANY1(+RO) ; evenly distributed with er3
    }
    er2 +0 256
    {
        .ANY2(+RO) ; Highest priority, so filled first
    }
    er3 +0 256
    {
        .ANY1(+RO) ; evenly distributed with er1
    }
}
Was this page helpful? Yes No