在 2025-12-26 20:47, Pali Rohár 写道:
Seems that "%c0" is supported by clang also for "i" input. And per gcc
documentation, %c modifier is machine generic:
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#GenericOperandmodifiers

What do you think about %c usage?

And do you know if there is asm inline documentation for clang? Because
I have not found anything yet.

Maybe all those are experiences, which work somehow, by accident. Simple things like `%0` with "r" or "i" inputs may work flawlessly, but others require testing.

So the safest solution is, still, to hard-code the handler name in assembly 
string.

(The comment in the end of that line has to be fixed too. 'To apply for something' means to request something. The correct phrase would be 'applies _to_ the whole function'.)


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to