SV: [Icc-avr] PC-lint
Steven Lose
sl at ecpower.dk
Tue Sep 16 02:58:46 PDT 2008
Thanks.
I'll take a look at it and see if I can understand how to use it.
Med venlig hilsen / Best regards / mit freundlichen Grüßen
EC POWER A/S
Steven Lose
Software Ingeniør
Tlf.: +45 87434100
Direkte tlf. +45 58286608
Email: sl at ecpower.dk <blocked::mailto:bsl at ecpower.dk>
www.ecpower.dk <http://www.ecpower.dk/>
________________________________
Fra: icc-avr-bounces at imagecraft.com [mailto:icc-avr-bounces at imagecraft.com] På vegne af Dean Bell
Sendt: 16. september 2008 11:06
Til: Discussion list for ICCAVR and ICCtiny Users. You do NOT needto subscribe to icc-announce if you are a member of this.
Emne: RE: [Icc-avr] PC-lint
Hi Steve
Attached is a small test project with the xxx.lnt file and the TOOLS->PC-Lint menu item set in the .prj file. I have given it a quick test and here is the result as seen in the message window:-
C:\iccv712\Lint\lint-nt.exe MALLOCTEST-D1
PC-lint for C/C++ (NT) Vers. 8.00t, Copyright Gimpel Software 1985-2005
--- Module: MallocTest-D1.C (C)
_
"" );
!W MallocTest-D1.C(97): (626) argument no. 2 inconsistent with format
!W MallocTest-D1.C(97): (626) argument no. 3 inconsistent with format
!W MallocTest-D1.C(97): (534) Ignoring return value of function 'printf(const
char *, ...)' (compare with line 21, file C:\ICCV712\include\stdio.h)
!W C:\ICCV712\include\stdio.h(21): (830) Location cited in prior message
_
_NewHeap( &_bss_end+1, (void*)0x3fff ); // xxxx bytes heap
!W MallocTest-D1.C(111): (826) Suspicious pointer-to-pointer conversion (area
too small)
_
(void)printf( "Start malloc test,%04X\n", *__FreeList );
!W MallocTest-D1.C(113): (437) Passing struct 'cell_hdr' to ellipsis
!W MallocTest-D1.C(113): (559) Size of argument no. 2 inconsistent with format
_
mem = malloc( size );
!W MallocTest-D1.C(119): (732) Loss of sign (arg. no. 1) (int to unsigned int)
_
(void)printf( "Ok,%04X,%ld,%u\n", *__FreeList, cnt, size );
!W MallocTest-D1.C(122): (437) Passing struct 'cell_hdr' to ellipsis
!W MallocTest-D1.C(122): (559) Size of argument no. 2 inconsistent with format
_
while( mem );
!W MallocTest-D1.C(127): (449) Pointer variable 'mem' previously deallocated
[Reference: file MallocTest-D1.C: line 125]
!W MallocTest-D1.C(125): (831) Reference cited in prior message
_
(void)printf( "Malloc failed,%04X,%ld,%u\n", *__FreeList, cnt, size );
!W MallocTest-D1.C(128): (437) Passing struct 'cell_hdr' to ellipsis
!W MallocTest-D1.C(128): (559) Size of argument no. 2 inconsistent with format
_
(
!W MallocTest-D1.C(140): (21) Expected {
!W MallocTest-D1.C(140): (10) Expecting ';'
_
);
!W MallocTest-D1.C(147): (19) Useless Declaration
--- Wrap-up for Module: MallocTest-D1.C
!W MALLOCTEST-D1.lnt(48): (752) local declarator '_start' (line 11, file
MallocTest-D1.C) not referenced
!W MallocTest-D1.C(11): (830) Location cited in prior message
!W MALLOCTEST-D1.lnt(48): (754) local structure member 'cell_hdr::size' (line
17, file MallocTest-D1.C) not referenced
!W MallocTest-D1.C(17): (830) Location cited in prior message
--- Global Wrap-up
!W (): (526) Symbol '_textmode' (line 10, file MallocTest-D1.C) not defined
!W MallocTest-D1.C(10): (830) Location cited in prior message
!W (): (714) Symbol 'Vectors' (line 139, file MallocTest-D1.C) not referenced
!W MallocTest-D1.C(139): (830) Location cited in prior message
!W (): (526) Symbol '__FreeList' (line 23, file MallocTest-D1.C) not defined
!W MallocTest-D1.C(23): (830) Location cited in prior message
!W (): (526) Symbol '_bss_end' (line 9, file MallocTest-D1.C) not defined
!W MallocTest-D1.C(9): (830) Location cited in prior message
Done: there are error(s). Exit code: 29. Tue Sep 16 21:02:27 2008
Ok it is a ICCV712 project but the story is the same.
I hope this helps
Dean.
-----Original Message-----
From: icc-avr-bounces at imagecraft.com [mailto:icc-avr-bounces at imagecraft.com]On Behalf Of Steven Lose
Sent: Tuesday, 16 September 2008 8:00 p.m.
To: Discussion list for ICCAVR and ICCtiny Users. You do NOT need tosubscribeto icc-announce if you are a member of this.
Subject: [Icc-avr] PC-lint
Hi.
I have PC-lint 8.00x but no clue how to make it work with ICC.
Have anyone tried it before?
Med venlig hilsen / Best regards / mit freundlichen Grüßen
EC POWER A/S
Steven Lose
Software Ingeniør
Tlf.: +45 87434100
Direkte tlf. +45 58286608
Email: sl at ecpower.dk <blocked::mailto:bsl at ecpower.dk>
www.ecpower.dk <http://www.ecpower.dk/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080916/1aacbae8/attachment.html
More information about the Icc-avr
mailing list