General Forums >> General Programming

Pages: 1
jhsu802701
stranger


Reged: Feb 07 2010
Posts: 1
splint: Do you use it?
      #148252 - Mon Feb 08 2010 12:32 AM

I'm trying to use splint to check code written in PICC Lite, but it seems to be having difficulty recognizing variables that were defined in one of the #include *.h files.

Is using splint to check code for a PIC microcontroller a lost cause, or is it something that good embedded engineers use?


Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3872
Loc: Colorado
Re: splint: Do you use it? [Re: jhsu802701]
      #148312 - Mon Feb 08 2010 08:07 AM

It's been at least 6 years since I tried splint. Perhaps things are different now, but I don't recall it being configurable to accept HI-TECH compiler extensions.

Gimpel's lint product, on the other hand, is configurable and is the lint that I use.

http://www.gimpel.com/


Post Extras: Print Post   Remind Me!   Notify Moderator  
Phil H
stranger


Reged: Feb 16 2010
Posts: 5
Re: splint: Do you use it? [Re: Dan Henry]
      #149472 - Tue Feb 16 2010 08:33 PM

I have PC-Lint 8.00, but with the standard setup it isn't that useful--it fails to understand the library headers, e.g.

extern volatile near bit TMR0IF @ ((unsigned)&INTCON*8)+2;
"
c:\Progra~1\HI-TEC~1\PICC-18\pro\9.63\include\pic18f45k20.h(180:65) : Error 19:
Useless Declaration"

And then it barfs when it sees TMR0IF in the actual program.

Do you have a PC-Lint options file that actually works with PICC-18?

Thanks


Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3872
Loc: Colorado
Re: splint: Do you use it? [Re: Phil H]
      #149482 - Tue Feb 16 2010 10:58 PM Attachment (20 downloads)

The attached, after changing the suffix from .txt to .lnt, should provide a starting point.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Phil H
stranger


Reged: Feb 16 2010
Posts: 5
Re: splint: Do you use it? [Re: Dan Henry]
      #151762 - Tue Mar 02 2010 11:29 PM

Thanks, I'll give it a try!

Cheers

Phil Hobbs


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 2 anonymous users are browsing this forum.

Moderator:  Dan Henry, jtemples, mikerj, Andrew L 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 390

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5