| Subject: | GCC inline ASM question |
|---|---|
| From: | Rich Fife <rfife@xxxxxxxx> |
| Date: | Mon, 14 Jul 2008 13:03:24 -0700 (PDT) |
| Newsgroups: | gnu.gcc.help |
Is it possible to have GCC give assign you a register for use without
declaring it an input or output register? I need a temp register to
store intermediate values and I'm hard coding it to eax like so:
__asm__(
...
// We have to specifically ask for ecx since shl can
only use cl.
: "=c" (member) : "r" (check_point) : "%eax" );
I'd like to replace the final "%eax" with "r" and use %2 to access it,
but that doesn't work.
Thanks in advance!
-- Rich --
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: standard system libraries and -static option, Onno Garms |
|---|---|
| Next by Date: | Re: standard system libraries and -static option, Paul Pluzhnikov |
| Previous by Thread: | standard system libraries and -static option, Onno Garms |
| Next by Thread: | Catching integer overflow, thomas . mertes |
| Indexes: | [Date] [Thread] [Top] [All Lists] |