This is the mail archive of the
crossgcc@cygnus.com
mailing list for the crossgcc project.
GCC and Hitachi H8300h (floating point problem)
Hi,
I have some problems with floating point numbers in
H8/300H evaluating board. I try to modify little tutorial
program very simple. I add in main module union U
:
void main()
{
union {
unsigned long dw;
float
f;
} U;
U.dw = 0x11223344; /* first
*/
U.f = 1.0;
/* second
*/
...
}
After starting in step mode I see: first operator works
well,
second - not. It loads in U.f binary 0x01010101 (must
be
0x3F800000). Why???