DS5 ARM C Compiler 5 を使用して乗算を実行するために、次のコードを使用しています。
static __inline int32_t multiply(int32_t x, int32_t y)
{
__asm volatile(
"mul %0, %1, %2\n\t"
: "=a"(y) // error pointed to this line
: "r"(x), "a"(y));
return y;
}
注: ターゲット --cpu は armV7a です。このエラーを克服する方法はありますか?