home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20225 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.4 KB

  1. Xref: sparky comp.lang.c:20225 comp.lang.fortran:5189
  2. Newsgroups: comp.lang.c,comp.lang.fortran
  3. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!still3.chem.columbia.edu!shenkin
  4. From: shenkin@still3.chem.columbia.edu (Peter Shenkin)
  5. Subject: Re: calling a Fortran subroutine from a C program
  6. References: <1993Jan22.233618.17814@chpc.utexas.edu> <1993Jan23.152153.7178@biome.bio.ns.ca> <ig25.728061129@fg30>
  7. Sender: nobody@ctr.columbia.edu
  8. Organization: Dept. of Chem, Columbia U, New York
  9. Date: Tue, 26 Jan 1993 16:06:22 GMT
  10. Message-ID: <1993Jan26.160622.24483@sol.ctr.columbia.edu>
  11. Distribution: na
  12. X-Posted-From: still3.chem.columbia.edu
  13. NNTP-Posting-Host: sol.ctr.columbia.edu
  14. Lines: 17
  15.  
  16. In article <ig25.728061129@fg30> ig25@fg30.rz.uni-karlsruhe.de (Thomas Koenig) writes:
  17. >An implementation might very well choose to start every character
  18. >variable on a word boundary, for speed reasons.
  19. >
  20. >      CHARACTER*1 STRING(100)
  21. >
  22. >would then appear to C to be an array of ints, instead of chars.
  23.  
  24. I think Cray in fact does this, while placing CHARACTER*1 scalars
  25. on byte boundaries.
  26.  
  27.     -P.
  28. -- 
  29. ************************f*u*cn*rd*ths*u*cn*gt*a*gd*jb************************
  30. Peter S. Shenkin, Box 768 Havemeyer Hall, Dept. of Chemistry, Columbia Univ.,
  31. New York, NY  10027;  shenkin@still3.chem.columbia.edu;  (212) 854-5143
  32. ******************** Wodeheads!  Wodeheads!  Wodeheads! *********************
  33.