GCC and Hitachi H8300h (floating point problem)
Michael K. Elwood
mkelwood@qsicorp.com
Thu May 13 12:02:00 GMT 1999
>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???
Could you send the command line or makefile used to build this source, and
the assembly listing if possible?
MKE
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
More information about the crossgcc
mailing list