home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / arch / 9022 next >
Encoding:
Text File  |  1992-08-23  |  1.9 KB  |  43 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!gatech!rpi!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!kksys.com!edgar!technix!bret
  3. From: bret@technix.mn.org (Bret Indrelee)
  4. Subject: Re: 32 => 64 Transition
  5. Message-ID: <1992Aug23.162814.15668@technix.mn.org>
  6. Organization: Private System - Saint Paul, MN
  7. References: <1992Aug18.094549.25179@awdprime.austin.ibm.com> <l9b1usINN2aj@exodus.Eng.Sun.COM> <mcdonald.235@aries.scs.uiuc.edu>
  8. Date: Sun, 23 Aug 1992 16:28:14 GMT
  9. Lines: 32
  10.  
  11. In article <mcdonald.235@aries.scs.uiuc.edu> mcdonald@aries.scs.uiuc.edu (J. D. McDonald) writes:
  12. >In article <l9b1usINN2aj@exodus.Eng.Sun.COM> chased@rbbb.Eng.Sun.COM (David Chase) writes:
  13. >
  14. >>    sizeof(INTEGER) = sizeof(REAL) = sizeof(DOUBLE PRECISION)/2.
  15. >
  16. >
  17. >And indeed this is still very much true in Fortran 90.
  18. >
  19. >>A corollary of this is that there had better be a 32-bit integer data
  20. >>type in C, unless your hardware implements quad-word floating point.
  21. >
  22. >Don't you mean the your machine needs it for **Fortran**?? That of course
  23. >essentially decies the issue, as Fortran is still very much alive ...
  24. >especially for high-end machines. Fortran 90 is probably more or less dead,
  25. >but not Fortran 77, which remains a standard. That latter is very 
  26. >important .... Fortran 90 is such a botch that to get it passed Fortran
  27. >77 had to remain an official standard.
  28.  
  29. The initial statement (there had better be 32-bit integer in C) is correct.
  30. Some people like to mix languages, calling a C routine from Fortran.  I
  31. suppose the opposite is occasionally done as well, but from what I've seen
  32. the common case is Fortran calls C.
  33.  
  34. No language is perfect.  It is a good idea to allow mixed language development
  35. without unneccessary hassles.
  36.  
  37. -Bret
  38.  
  39. -- 
  40. ------------------------------------------------------------------------------
  41. Bret Indrelee               |   Pretend there is something profound
  42. email: bret@technix.mn.org  |   written here.
  43.