Thanks Matthijs. You give me so much helpful information. I know generally C compiler can do an excellent work. Only in special case, manual assembly code is necessary. Anyhow, I enjoy such work when it is necessary. I have done asm coding on one DSP core, one Synopsis ARC600 core. Now I feel that ARM processor is still very different from those. I am especially interested in digital signal processing project. Do you know any small project which can be a good exercise to grasp ARM asm coding? For me, it is import to know the goal, then try to get that goal by coding.
Second, I used SIMD on other cores in the past. When I compile a project having for loop, I do not see the generated ARM NEON assembly code in the disassembly window. I have used options: "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math -mfloat-abi=softfp" Thanks, 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, > -- 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.
