HI, all,
To optimize an algorith(coded by C) performance, I compiled the algorithm as a library with ARM compiler 6.
But another problem appears that the library will be called by older ARM compiler 5 project.
I want to know:
1) Whether Can ARM compiler 5 project call library compiled by ARM compiler 6?
2) if 1) is ok, How to use the lib in ARM compiler 5 project ?
Regard!
I assume you are talking about a static library (*.a). If the library is written in C, then it should be possible. If you use C++, then it becomes difficult or impossible because the different compilers use different standard C++ libraries and C++ is compiled differently between different versions of compilers (for example name-mangling differences). For details on how to get the compilers do the same thing, you want to check the migration guide. For example the defaults of Arm Compiler 6.13 are different: https://developer.arm.com/docs/100068/0613/migrating-from-arm-compiler-5-to-arm-compiler-6/default-differences
Answered in duplicate thread:
https://community.arm.com/developer/tools-software/tools/f/keil-forum/45320/whether-can-arm-compiler-5-project-call-library-compiled-by-arm-compiler-6