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