I have few C code files which I want to scan using cppcheck. But I have observed that the files which is having more size for example- the c code file is having 8k lines of code due to which the size of the file is also big, Scanning was getting stuck as the CPU utilization was reaching to 100%.
I am using below command.
Do you have any estimation on sizing of CPU for cppcheck scanning tool? Or how can we calculate how much size of CPU is required for specific lines of code?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is not possible to give an estimate. It depends on how many variables you have. How many possible executions paths there are. etc.
If you have 8k lines of code and cppcheck is not finished after an hour, it might have hanged somewhere.
Last edit: Daniel Marjamäki 2024-11-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Team,
I have few C code files which I want to scan using cppcheck. But I have observed that the files which is having more size for example- the c code file is having 8k lines of code due to which the size of the file is also big, Scanning was getting stuck as the CPU utilization was reaching to 100%.
I am using below command.
cppcheck /path/to/c_code_module --enable=all --check-level=exhaustive --force --checkers-report=output.txt
Do you have any estimation on sizing of CPU for cppcheck scanning tool? Or how can we calculate how much size of CPU is required for specific lines of code?
Thanks!
It is not possible to give an estimate. It depends on how many variables you have. How many possible executions paths there are. etc.
If you have 8k lines of code and cppcheck is not finished after an hour, it might have hanged somewhere.
Last edit: Daniel Marjamäki 2024-11-11