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