This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA746: cortex A15 with soft-fp is possible?

Part Number: DRA746

Tool/software: Linux

Hi,

Platform: Jacinto 6- Cortex A15

OS: Linux

Toolchain: gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03)

Float option: -mfloat-abi=hard

Currently our application is working fine with above setup. It is using hard floating point option.

My question is, Is it possible to use cortex-A15 with soft-fp option in this toolchain?

If i do '-print-multi-lib' ,

$ ./arm-linux-gnueabihf-gcc -print-multi-lib
.;
arm-linux-gnueabi;@marm@march=armv4t@mfloat-abi=soft

From this, I assume that I can use soft floating point option with -march=armv4t in arm mode. But I do not want to downgrade arm version from armv7-a to armv4t.

Is it possible to use arm mode, -march=armv7-a, -mcpu=cortex-a15 & -mfloat-abi=softfp in any other toolchain?

I checked some of the linaro toolchains. It is not having this option in -print-multi-lib. In one tool chain, softfp option is their for thumb mode. But I need to use in arm mode. Any idea?

Reason for this query is, I need to link one external library which is build with soft-fp option. For my current configuration, (ie) hard fp option, I cannot link and use it.

Kindly suggest some ideas.

Regards,

Rajeswari S

  • Hi Rajeswari,

    As far as I know, the support for soft-fp for ARMv7 architectures was dropped a few years ago.
    The native SDK and also the tool chain support that exists in the Yocto mainline is for hard-fp only.
    You will have to build your own tool chain from GCC sources to go down this path.

    All TI SDKs ship only with the hard-fp support and is inline with the mainline strategy.

    Regards
    Karthik
  • Thanks for the information Karthik!

  • Dear Karthik,

    One more confirmation is needed.

    When you say "As far as I know, the support for soft-fp for ARMv7 architectures was dropped a few years ago.", is it in terms of Linaro toolchain or all other toolchain? I mean, softfp support is stopped for armv7 is only in Linaro toolchain  or any other toolchain like CodeSourcery?

    Again coming to the point, "Is it possible to use arm mode, -march=armv7-a, -mcpu=cortex-a15 & -mfloat-abi=softfp in any other toolchain?"

    Regards,

    Rajeswari S

  • Hi Rajeswari,

    TI SDK's are shipped with the GCC Linaro toolchain, so I don't have much information on the CodeSourcery. Please check this on your side.

    Distributions such as Android and other High Level Operating systems use the softfp options but they are quite different from native Linux distributions such as the Processor SDK Linux Automotive.

    In addition, you also have to make sure that all the libraries that are integrated also come with the softfp support. This introduces some implicit requirements on the libraries that make up the filesystem.

    TI does not have a plan to add support for the softfp option, atleast for the moment.

    Regards
    Karthik