This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: floating point formats, again


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.


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