M
Mark McIntyre
On 2 Jun 2005 06:40:42 -0700, in comp.lang.c ,
All this might well be true.
There's no 'correct' way. The standard doesn't require this conversion
to be meaningful, although an implementor is free to provide a
meaning. So...
.....this is indeed the only way to know if your particular hardware /
os / compiler supports the conversion.
In embedded systems, some of the processor registers are memory mapped.
I have seen certain piece of code, where these registers are accessed
in this manner.
All this might well be true.
This might not be the correct way of doing it.
In such scenarios, how these registers should be accessed ?
There's no 'correct' way. The standard doesn't require this conversion
to be meaningful, although an implementor is free to provide a
meaning. So...
Or the only way is to read the compiler's documentation
.....this is indeed the only way to know if your particular hardware /
os / compiler supports the conversion.