Add RSB for LLVM targeting RTEMS

Hello everyone,

I am very interested in this project and would like to clarify my understanding of its overall objective.

As I understand it, the project is intended first to provide an RSB recipe for building an LLVM toolchain, and then to use that LLVM-based toolchain to compile applications for ARM, RISC-V, or x86_64 targets, with the results subsequently compared against those produced using the GCC toolchain.

Could you please let me know whether this understanding is correct?

Best regards,
Yijun Li

Yes, that is correct. The first step would be to do it manually. There have been RSB recipes done in the past, but they haven’t been maintained. Making this a robust solution for multiple architectures can encourage us to keep building LLVM-based tools and maintain the recipes.

Hello, I would like to ask a question. I successfully compiled a test program using the LLVM toolchain, but when linking with clang, the process failed. So now I am using the LLVM toolchain to compile the RTEMS application and using GNU ld to link the drivers. Is this approach feasible?

Additionally, if the aforementioned plan doesn’t work. Could you please guide me on how to use the LLVM toolchain throughout the entire process from compilation to linking?

Although this may be an OK intermediate step, we would eventually like to know if we can use the LLVM toolchain independently from GCC or not.

OK, I will keep working in this direction.