Hi,
I would like to ask which version of gcc and with what flags , may I compile some c code to assembly code that uses arm neon coprocessor for ARMV7-A processor. Of course I want to use the processor itself but also the coprocessor. Is this gcc optimal?
Thank you
Which version of gcc
If in doubt, grab the latest you can - it tends to improve things.
and with what flags
This paper includes some useful instructions:
http://www.add.ece.ufl.edu/4924/docs/arm/ARM%20NEON%20Development.pdf
Is this gcc optimal?
No compiler ever produces optimal code for non-trivial examples. If in doubt look at the disassembly of what the compiler produces to check on what it is doing.
HTH,
Pete
Thank you for the answer.
Is there LLVM support? OpenCL support?
Thanks
The ARM Compiler 6 tool chain is based on LLVM, but currently that is aimed at ARMv8-A:
http://ds.arm.com/ds-5/build/arm-compiler-6/
I've not used the trunk version of LLVM, but looking at the Release Notes (LLVM 3.5 Release Notes — LLVM 3.4 documentation) the support seems to be there as well.
There's no OpenCL support via gcc directly. I'd suggest checking out pocl which you can download here...
http://portablecl.org/
HTH, Tim