I'm using DS-5 Eclipse with Arm Compiler 6 toolchain. I've got an error when trying to run the assembly function with the _asm keyword (unexpected qualifier id). Could anyone tell me how to embed assembly code into executable C file ??
The Arm Compiler 6 documentation contains information about using inline assembly which you might find useful:
- The "armclang Inline Assembler" chapter in the armclang Reference Guide: developer.arm.com/.../armclang-Inline-Assembler
- The __asm section contains an example of a simple embedded assembly function in C code: developer.arm.com/.../--asm
- There's a step-by-step tutorial showing how to use inline assembly with DS-5, but it uses Arm Compiler 5 (armcc) rather than Arm Compiler 6 (armclang) -- the fundamental concepts are the same though. developer.arm.com/.../using-inline-assembly-to-improve-code-efficiency
Hope that's useful to you,Chris