On Saturday, June 13, 2015 at 9:49:37 PM UTC-7, Robert Willy wrote:
>
> Hi,
> I want to write ARM asm code with GCC toolchain. Previously, I use TI CGT, 
> whose asm syntax is different from 
> GCC. For example, the last line has an error with GCC toolchain (bad 
> instruction type).
>
>
>
>     .global asmfunc
>     .global gvar
> asmfunc:
>     LDR r1, gvar_a
>     LDR r2, [r1, #0]
>     ADD r0, r0, r2
>     STR r0, [r1, #0]
>     MOV pc, lr
> gvar_a .field gvar, 32
>
>
> Could you point me to a tutorial, manual etc. on the syntax about writing 
> ARM asm code for GCC?
>
> Thanks,
>

I don't know how to get assembly code list file from compiling.  I think 
the cross compiler is 'arm-linux-gnueabihf-gcc-4.7.3'. This is the first 
time I use
this compiler and have not found its switches.

Thanks,

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to