RFC: Maintaining a per-macro invocation count

Nick Clifton nickc@redhat.com
Wed May 15 09:45:12 GMT 2024


Hi Fangrui,

> This feature looks very useful, which resembles
> https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#Special-format-strings
> 
>> ‘%=’
>>
>> Outputs a number that is unique to each instance of the asm statement in
>> the entire compilation. This option is useful when creating local labels
>> and referring to them multiple times in a single template that generates
>> multiple assembler instructions.

Intersting.  I had not considered generating assembler tests in C ... :-)

Cheers
   Nick




More information about the Binutils mailing list