This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC and Hitachi H8300h (floating point problem)


>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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]