Using inline assembly with specific register indices
Daniel Jacobowitz
drow@false.org
Tue Apr 5 04:26:00 GMT 2005
On Tue, Apr 05, 2005 at 07:27:00AM +0300, nkavv@physics.auth.gr wrote:
> I was wondering...
>
> why not support asm templates THAT ARE NOT string constants??? And I
> mean for static compilation cases only.
>
> For example:
>
> asm(instrx $%d, $%d\n",src1,src2 : "=r" (var1) : "r" (var2));
>
> I assume printf-like formating.
Because it's unnecessary. See my previous message; you can find many
examples on the Web of how to use CPP to stringify numbers.
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Gcc
mailing list