代码: 全选
自己搞明白了,似乎只是我在自言自语, :em06
Local Labels
Local labels help compilers and programmers use names temporarily. They create symbols which are guaranteed to be unique over the entire scope of the input source code and which can be referred to by a simple notation. To define a local label, write a label of the form ‘N:’ (where N represents any positive integer). To refer to the most recent previous definition of that label write ‘Nb’, using the same number as when you defined the label. To refer to the next definition of a local label, write ‘Nf’—the ‘b’ stands for “backwards” and the ‘f’ stands for “forwards”.
There is no restriction on how you can use these labels, and you can reuse them too. So that it is possible to repeatedly define the same local label (using the same number ‘N’), although you can only refer to the most recently defined local label of that number (for a backwards reference) or the next definition of a specific local label for a forward reference. It is also worth noting that the first 10 local labels (‘0:’...‘9:’) are implemented in a slightly more efficient manner than the others.
Here is an example:
代码: 全选
1: branch 1f
2: branch 1b
1: branch 2f
2: branch 1b
Which is the equivalent of:
代码: 全选
label_1: branch label_3
label_2: branch label_1
label_3: branch label_4
label_4: branch label_3