This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: asm related error while compilation with gcc
- From: Ian Lance Taylor <iant at google dot com>
- To: Arjun Prasad <arjunprasadmca at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org, arjun_prime at yahoo dot co dot in
- Date: Fri, 06 Nov 2009 07:55:33 -0800
- Subject: Re: asm related error while compilation with gcc
- References: <de055e530911052110k388436f3h3a107a9a52ac66fe@mail.gmail.com>
Arjun Prasad <arjunprasadmca@gmail.com> 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