GCC and Hitachi H8300h (floating point problem)

Jurgis Armanavichius jurgis@medelkom.com
Thu May 13 09:58:00 GMT 1999


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???
 
Jurgis Armanavichius Firma MEDELKOM, http://www.medelkom.com



More information about the crossgcc mailing list