Menu

Estimation on sizing of CPU / Calculation for size of CPU required

2024-10-27
2024-11-11
  • Muskan Singh

    Muskan Singh - 2024-10-27

    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!

     
  • Daniel Marjamäki

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.