Analyzing C source code with multiple "main" functions not named "main()"
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!