Choosing a C or C++ compiler for safety-critical application development can be challenging. You may be torn between a compiler that is already qualified or an open-source compiler that still needs to be qualified. While already qualified compilers can be a quick short-term solution, open-source compilers such as GCC or Clang offer several benefits that make them attractive options.

Your advantages
One of the primary advantages of open-source compilers is their cost-effectiveness: they are often significantly cheaper. Additionally, open-source compilers tend to have more frequent updates and newer features.

Another benefit of open-source compilers is their configurability. Open-source compilers can be adapted to be what you want. Without the constraints of existing qualification boundaries, the use case of open-source compilers can be customized to meet specific project or safety requirements, resulting in improved performance and efficiency. This makes them an excellent choice for applications where compiler optimization is crucial.

Can an open-source compiler be qualified?
If you’re working on a safety-critical application that requires qualified or even certified compilers, you may think that a pre-qualified compiler is your only option. However, this isn’t the case. There is nothing in functional safety standards that prevents the qualification of open-source compilers. With the right compiler test and validation suite, you can qualify popular open-source compilers like GCC or LLVM yourself, giving you control over the qualification process. This approach can also be more cost-effective than purchasing a pre-qualified compiler, and it allows you to qualify as many compiler versions and configurations as needed. It requires initial effort to set it up, but it fits perfectly in a long-term strategy. Most importantly, you are independent and in full control: you qualify the exact compiler version, with the exact compiler configuration that best fits your needs.

By using SuperTest for GCC or LLVM qualification, you ensure that your compiler meets the necessary safety standards, such as IEC 61508, EN 50128 or ISO 26262. You can take advantage of the latest compiler features and optimizations, while still meeting the required safety standards. Ultimately, open-source compilers offer a range of benefits and, with the right tools, they are a viable option even for safety-critical applications.

Image background by: Land Rover MENA, CC BY 2.0

 

Marianne Damstra, CEO


Subscribe to our monthly blog!