Analyzing C source code with multiple "main" functions not named "main()"
Show older comments
I would like to run Polyspace Bug Finder & Code Prover on C source files implementing different Firmware variants. This means there are separate folders for the variants, each containing a .c file with an entry point function similar to "main" but with a different name. When i run the analysis, Bug Finder reports issues "An identifier with external linkage shall have exactly one external definition." since the whole codebase is considered to be part of a single "application" and the existing "main" functions are not recognized as the entry points of the respective "application".
So there are basically two questions now:
- Is it possible to analyse multiple "applications" with one run?
- Is it possible to specify a different name for the "main" entry point function so they are recognized as such?
thx,
Peter
Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!