tags:

views:

363

answers:

2

Hi

I want to use Neon SIMD instruction for the iphone. I heard we have to put flags "-mfloat-abi=softfp -mfpu=neon" in the "Other C Flags" field of the Target inspector, but when building I get "error: unrecognized command line option "-mfpu=neon"" .

Is there anything else special that has to be done to allow this flag? (I have Xcode 3.2.1 and iphone sdk 3.1.3)

Thanks !!

+1  A: 

The NEON set is an extension on the Cortex-A series, therefore not supported in iPhone 3G. You probably cannot specify this directly.

Nick Toumpelis
A: 

the iphone 3gs's cpu supports it. why can't xcode let us use NEON if we want to ? (of course we will have to make a code path for 3g and another for 3gs) ?

amanieux