This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can Cortex A8 NEON optimized code work on Cortex A5 NEON?

I have a library which is optimized for ARM Cortex A8 equipped devices, it heavily utilized the NEON VFPU, can the same code run on Cortex A5 devices with NEON?  If not, any guide to make it run on Cortex A5?

Thanks in advance!

Zhong

Parents
  • Both Cortex-A8 and Cortex-A5 are Armv7-A architectural processors.  The NEON instructions are similar.

    However, Cortex-A5 can support those options:

    • No FPU or NEON support
    • FPU only
    • with FPU and NEON support

    Cortex-A8 can support those options:

    • No FPU or NEON support
    • With FPU and NEON support

    Compiler options

    • Armcc --cpu=Cortex-A5 (core has neither)
    • Armcc --cpu=Cortex-A5.vfp (core has FPU only)
    • Armcc --cpu=Cortex-A5.neon (core has NEON and FPU)
    • armcc --cpu=Cortex-A8 (core has NEON and FPU)
    • armcc --cpu=Cortex-A8.no_neon (core has neither VFP or NEON)

    When you talked about "Cortex-A8 code heavily utilized the NEON VFPU" for Cortex-A5, you can judge based on above information.

Reply
  • Both Cortex-A8 and Cortex-A5 are Armv7-A architectural processors.  The NEON instructions are similar.

    However, Cortex-A5 can support those options:

    • No FPU or NEON support
    • FPU only
    • with FPU and NEON support

    Cortex-A8 can support those options:

    • No FPU or NEON support
    • With FPU and NEON support

    Compiler options

    • Armcc --cpu=Cortex-A5 (core has neither)
    • Armcc --cpu=Cortex-A5.vfp (core has FPU only)
    • Armcc --cpu=Cortex-A5.neon (core has NEON and FPU)
    • armcc --cpu=Cortex-A8 (core has NEON and FPU)
    • armcc --cpu=Cortex-A8.no_neon (core has neither VFP or NEON)

    When you talked about "Cortex-A8 code heavily utilized the NEON VFPU" for Cortex-A5, you can judge based on above information.

Children