c - What does a double-percent sign (%%) do in gcc inline assembly? -



c - What does a double-percent sign (%%) do in gcc inline assembly? -

i came across code looks this:

asm volatile ( # [...] "movl $1200, %%ecx;" # [...] );

i know movl $1200, %ecx in x86. confused why there 2 percent signs.

gcc inline assembly uses %0, %1, %2, etc. refer input , output operands. means need utilize 2 %% real registers.

check howto great information.

c gcc x86

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -