09-02-2008, 09:23 AM
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.