4 Replies Latest reply on Apr 13, 2015 12:43 PM by user_1377889

    PC-Lint in Creator 3.1

    user_71310180

       Hello,

         

      I've run into some interesting bugs in my code migrating from Creator 3.0 to 3.1. So, to get a better handle on things (and perhaps discover some latent bugs) I am wanting to use PC-Lint. It doesn't appear to be natively supported by the Creator IDE. So, any of you had experience utilizing PC-Lint with Creator 3.1? I'm trying to get an idea of complexity and caveats.

         

      Thanks!

        • 1. Re: PC-Lint in Creator 3.1
          user_14586677

          The heap and stack size were reduced in 3.1, try restoring to 3.0 levels 4K and 16K respectively.

             

          3.1 default settings are now 128 bytes and 2K.

             

           System tab in Fitterxxxxx*.cydwr file, workspace explorer near the top.

             

           

             

          Regards, Dana.

          • 2. Re: PC-Lint in Creator 3.1
            user_1377889

            Into Crerator is integrated Clang which will do some checkings and flags lines in question while typing. Remarkable is for me to see that if(a=b)" (I'm coming from PASCAL world) gets flagged and reminds me to change that line.

               

             

               

            Bob

            • 3. Re: PC-Lint in Creator 3.1
              user_71310180

              Dana, I have checked the heap and stack sizes. Those were set in a previous project and hadn't changed. But good thing to remember!

                 

              Thanks Bob, I didn't know what the static analysis too was called. Clang catches most things I'm worried about, and maybe that's sufficient. I'm guessing the culprit is more deep seated than a simple coding error. I've noticed that the issue arrises when the CyBoot 4.20 component is used (rather than 4.11). My guess is it's a constant or definition with regards to the FLASH routines. But just in case, I wanted a static code analysis tool output. 

                 

              So on that note, have any of you noticed a difference between Clang and PC-Lint?

              • 4. Re: PC-Lint in Creator 3.1
                user_1377889

                I would suggest you to google for "GCC lint", some interesting results.

                   

                 

                   

                Bob