How to specify an individual register as constraint in ARM GCC inline assembly?

I don’t think gcc for ARM allows you to use constraints to specify exactly which register to use. However, you can use explicit register variables to specify a register to store a variable in:

register int my_variable asm("r0");

Leave a Comment