This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Compile SDK11 with ARM Compiler Version 6

I would like to use the latest ARM Compiler Version 6 (armclang) because I need some features of the C++11 language.

Is it possible to use the latest ARM Compiler Version 6 to compile the SDK 11 ? Which flags should we use to be compatible with all macros currently available for GCC and armcc ?

In future SDK releases, will this compiler be officially supported ?

Parents
  • is armclang related to clang, as in the LLVM compiler? If so, it's very likely not going to work at all. clang/llvm fails to generate proper softdevice calls in release mode for reasons I and others have gone into at length on other threads. You can't currently use clang to compile so if armclang is based on LLVM, give up.

  • ... a macro which takes the current SVCALL() parameters and spits out that wrapper. That's because in order to do it, you need to know how many arguments you have and possibly have them listed out (I don't remember, it's 2 years since I did this).

    It would mean adding some parameters to SVCCALL() which the other compilers don't use, but clang does, or writing a quick shim for clang. Either works.

Reply
  • ... a macro which takes the current SVCALL() parameters and spits out that wrapper. That's because in order to do it, you need to know how many arguments you have and possibly have them listed out (I don't remember, it's 2 years since I did this).

    It would mean adding some parameters to SVCCALL() which the other compilers don't use, but clang does, or writing a quick shim for clang. Either works.

Children
No Data
Related