Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

static code analysis tools for spotting 64bit portability problems?

I am looking for the best way to convert large amounts of code to 64bit. It was suggested to me that I look into some static code analysis tools such as cpptest to spot the portability problems. Does anyone have any suggestions for me as to what I could use? Or an efficient way to port code to 64-bit?

environment: windows, vs2008 (I know about the "Detect 64-bit Portability Issues" option in VS but I need better).

example: a tool that would pick up this obvious type of 64bit portability bugs.

for (int i = 0; i < 64; i++)
{
    __int64 n64 = (1 << i); // Does not generate warning
}
like image 423
Padawan Learner Avatar asked Apr 22 '26 21:04

Padawan Learner


1 Answers

Try PVS-Studio: http://pvs-studio.viva64.com/, it provides specific rule set to spot 64-bit portability issues

like image 76
Mike Avatar answered Apr 29 '26 13:04

Mike



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!