Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

RE: [lpc2000] IAR Embedded Workbench for ARM - EWARM

2005-11-30 by Robert Adsett

At 04:29 PM 11/29/05 -0800, Joel Winarske wrote:
>I've heard the MISRA feature touted as a built-in Lint.

If they are touting MISRA checking as lint they haven't seen a good 
lint.  MISRA is a subset of what a good lint can find.

>Example - Keil code IAR does not like:
>
>#define P_EP(n) ((USB_EP_EVENT & (1 << (n))) ? USB_EndPoint##n : NULL)
>
>const void (* USB_P_EP[16]) (DWORD event) = {
>   P_EP(0),
>   P_EP(1),
>   P_EP(2)
>};


Good heavens, that may be legal C it's some of the ugliest I've seen in a 
while.  I'd want an awfully good reason before using such a 
construct.  PC-Lint BTW throws up all over it :)

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.