I'm using Keil uVision v5.29 and ARM compiler v6.13.1 (ArmClang). I was looking for a static code analyzer and found that Clang includes a static analyzer that is run with the --analyze option (see http://clang.llvm.org/docs/UsersManual.html). I added the --analyze option to my project's compiler command line (Options for Target -> C/C++ (AC6) -> Misc Controls) and it seems to work, at least partially. When I rebuild I get several new and appropriate compiler warnings that were not detected before. However, now the linking fails with "project.axf: error: L6007U: Could not recognize the format of file .\objects\project\sourcefile.o."
Does the Clang static analyzer work with Keil uVision, ArmClang, and ArmLink?
Is adding --analyze to the [Options for Target -> C/C++ (AC6) -> Misc Controls] field the proper way to invoke the static analyzer?
Why do I get linker error L6007U with the --analyze compiler option and is there a way to avoid this error while using the Clang static analyzer?
I had to change the analyzers, for my work I will be very useful portable analyzer, which now everyone can find, just need to refer here to professionals who really help and take only the same analyzers from them. When I was looking for a handheld analyzer for our production to analyze various data, for example, using the same handheld analyzer at https://elvatech.com/portable-spectrometers/ , you can read here about it and if you like you can pick it up. We use them both for work and personal needs, they are very useful and give the result as quickly as possible.
View all questions in Arm Compilers forum