Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clarification of Rule 17.4
#11
sparker Wrote:
Code:
uint32 ptr_address   = (uint32)vp;

This is not portable code. See ANSI C90 6.3.4. You're invoking implementation defined behaviour.

stephen

BTW at no time does MISRA reference ANSI C

The standard is ISO 9899:1990 (+A1, TC1,TC2) or ISO-C

ANSI-C is the local US standard and ISO is the International Version. (Otherwise MISRA could have refenced BSI-C as they are UK based) The reason being is local standards such as ANSI my or may not be the same as the ISO version

In the case of C there are differences between the two documents.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)