[En-Nut-Discussion] Input operand list question in "ARM GCC Inline Assembler Cookbook"

Harald Kipp harald.kipp at egnite.de
Tue Feb 11 10:53:29 CET 2014


On 08.02.2014 11:05, 唐心磊 wrote:

> In the first example in "Using Constants" section.
> asm("mov r0, %[flag]" : [flag] "I" (0x80));
> I think that the [flag] should be in input operand list as follow.
> asm("mov r0, %[flag]" : : [flag] "I" (0x80));

You are perfectly right and the cookbook is wrong here. I fixed it.
Thanks for your input.



More information about the En-Nut-Discussion mailing list