This is the mail archive of the
crossgcc@cygnus.com
mailing list for the crossgcc project.
Re: GCC and Hitachi H8300h (floating point problem)
- To: <crossgcc@cygnus.com>
- Subject: Re: GCC and Hitachi H8300h (floating point problem)
- From: "Michael K. Elwood" <mkelwood@qsicorp.com>
- Date: Thu, 13 May 1999 10:55:24 -0600
- Reply-To: crossgcc@cygnus.com
>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.