sb******@rediffmail.com wrote:
Hi All,
I want to write one c function with some
inline assembly code like that:
void foo(int i)
{
__asm("addu $at,i,0");
}
Here input is a general purpose register number.
It's giving error at "i", that register expected.
I am using ghs compiler for MIPS.
Could anyone please tell me how I can do it?
Not here. This is not standard portable C, so look for a newsgroup
that deals with your system and/or compiler.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson