This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Parents
  • Note: This was originally posted on 14th July 2011 at http://forums.arm.com

    we have able to identify the general form of an inline assembler statement:

    asm(code : output operand list : input operand list : clobber list);with this, we derived as below for our above example:
    #define ADD(sum, input1, input2) asm("add %0, %1, %2" : "=r"(sum) : "r"(input1),"r"(input2))

    with this, three operand inline assembly is working fine :).
Reply
  • Note: This was originally posted on 14th July 2011 at http://forums.arm.com

    we have able to identify the general form of an inline assembler statement:

    asm(code : output operand list : input operand list : clobber list);with this, we derived as below for our above example:
    #define ADD(sum, input1, input2) asm("add %0, %1, %2" : "=r"(sum) : "r"(input1),"r"(input2))

    with this, three operand inline assembly is working fine :).
Children
No data