This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: floating point formats, again
- To: Zack Weinberg <zackw at stanford dot edu>
- Subject: Re: floating point formats, again
- From: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>
- Date: Tue, 13 Mar 2001 11:05:09 +1300 (NZDT)
- Cc: gcc at gcc dot gnu dot org
- References: <20010311214231.C19209@stanford.edu>
Zack Weinberg writes:
> Once again, I'd appreciate if those with access to VAXes and IBM
> mainframes, PDP/10s, and other hardware with unusual floating-point
> formats could compile the appended program and report what it prints.
> Exactly one line of the output should have a recognizable string in
> its rightmost column; the rest should be dots and the occasional
> character.
> "Unusual" means "not IEEE."
OK, the TMS320C3x/C4x floating point is slightly unusual. However,
even more unusual is the fact that sizeof(char) = sizeof(double) ;-)
After running you test program, I get this! I think you can safely
assume that noone will ever port GCC to run on this target...
*** sizeof(double) == 1
3.25724261999130249023e+1 5024a2a3d44665fef389c8e22049a91 23bd2b37cb63009326 ._ޑ7c.&
3.53802341222763061523e+18 3d44665fef389c8e22049a9123bd2b37 cb63009326934f _ޑ7c.&O
1.10037036240100860596e-5 ef389c8e22049a9123bd2b37cb63 009326934f9367 ޑ7c.&Og
1.77977716922760009766e+10 22049a9123bd2b37cb6300 9326934f936700 ‘7c.&Og.
-5.22995841503143310547e+10 23bd2b37cb63009326 934f93670000 7c.&Og..
Michael.