Can CC-RX linker link to GCC-RX built static library?
Can CC-RX linker link to GCC-RX built static library?
I have a static library that is built with GNU Tools GCC-RX compiler. Can I use this library as-is to link with a CC-RX built embedded application, or do I have to rebuild my library with CC-RX first?
Hello,
How did you compile the GCC source code in CC-RX?
I’m trying but I get a lot of errors.
Best regards,
Igor.
Hello,
Thank you for reaching out to us!
In general, you may link a GCC-RX generated library in a CC-RX C project. For most functions, the ABI is compatible between the two of them.
Nonetheless, our recommendation is to recompile the library using the CC-RX toolchain. The reason why we don’t recommend using the GCC-RX generated libraries in CC-RX projects is related to the usage of GCC extensions. Some GCC-RX GCC extensions are breaking the ABI compatibility.
Please let us know if we can be of further assistance,
Best Regards,
The GNU Tools Team