I am trying to understand "Inline Assembly", which is used on Linux source code in several places.
Here is one example,
Code: Select all
asm ("cld\n\t"
"rep\n\t"
"stosl"
: /* no output registers */
: "c" (count), "a" (fill_value), "D" (dest)
: "%ecx", "%edi" );
From the online tutorials, I understood something about Inline Assembly, but still I can't able to understand about the last parameter
Code: Select all
: "%ecx", "%edi"
"It instructs GCC compiler to use these registers ECX and EDI wihtout worry about its eariler & later usage."
Is my understanding is correct ?