I am in need of such a inline assembly code:
Instead of putting the move into ecx within the assembly code, put the operand in ecx directly:
: : "c"(foo)