OutputOperands

OutputOperands

Content #

Output operands用于标识会被汇编代码修改的C变量的名称。Operands由逗号分隔,每个Operand的格式为:

[ [asmSymbolicName] ] constraint (cvariablename)

asmSymbolicName #

为operand指定符号名,可在汇编代码中通过加中括号的方式来引用,比如:

%[Value]

constraint #

可称为“输出操作约束”,是用双引号引起来的字符串。约束字符串的开始前缀必须是等号“=”或加号“+”。等号“=”意味着 a variable overwriting an existing value. 加号“+”意味着 when reading and writing.

cvariablename #

Specifies a C lvalue expression to hold the output, typically a variable name.