Mail Archives: djgpp/1993/04/06/13:30:42
From a Sun workstation:
server%~/c> cc -o dbl t.c
server%~/c> dbl
MAXDOUBLE = 1.79769313486231570815e+308
ALMOSTMAX = 1.79769313486231471023e+308
dd = 1.79769313486231570815e+308 = 0x7fefffff 0xffffffff
ddd = 1.79769313486231471023e+308 = 0x7fefffff 0xfffffffa
server%~/c> gcc -o gdbl t.c
server%~/c> gdbl
MAXDOUBLE = 1.79769313486231570815e+308
ALMOSTMAX = 1.79769313486231471023e+308
dd = 1.79769313486231570815e+308 = 0x7fefffff 0xffffffff
ddd = 1.79769313486231471023e+308 = 0x7fefffff 0xfffffffa
On the DOS system:
Compiled with tcc t.c
C:\PRG\CTST(2)>t
MAXDOUBLE = 1.7976931348623157100e+308
ALMOSTMAX = 1.7976931348623147100e+308
dd = 1.7976931348623157100e+308 = 0x0000ffff 0x0000ffff
ddd = 1.7976931348623147100e+308 = 0x0000fffa 0x0000ffff
Compiled with gcc -o dbl t.c
C:\PRG\CTST(2)>dbl
MAXDOUBLE = 1.79769313486231670000e+308
ALMOSTMAX = 1.79769313486231570000e+308
dd = -1.36030540170737879180e-310 = 0x00000002 0x7ff00000
ddd = 1.79769313486231670000e+308 = 0xffffffff 0x7fefffff
The DOS system is 386DX/25 with 387. djgpp is v 1.08.
The result with Turbo C seems identical to unix, except for the
Intel ordering (and one more digit printed).
Michael Sanders internet: sanders AT umich DOT edu
Physics Department bitnet: sanders AT umiphys
University of Michigan phone: 313/936-0799
Ann Arbor, MI 48109-1120 FAX: 313/763-9694
- Raw text -