Re: asm related error while compilation with gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arjun Prasad <arjunprasadmca@xxxxxxxxx> writes:

> 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.

That is not the gcc asm syntax.  That is the asm syntax for some other
compiler.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux