This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

asm related error while compilation with gcc


Hi All,

While compiling(with gcc cross compiler build for powerpc target
proccessor + AMX RTOS) a xyz.c file containing some code in following
format:-
asm void abcxyz(void *ptr,int arjunSroll)
{

!"r6"
......
......
......
mfspr r6,hido
......
......
addi? r6,r0,...@1
}
I got following errors..
error:expected '(' before 'void'
error:stray '@' in program

Can anybody tell me the reason of geting such errors.
Thanks in advance...
Cheers..
Arjun Prasad


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]