This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Q: Passing character string lengths with 64-bit addressing
- From: Walter Spector <w6ws at earthlink dot net>
- To: FX <fxcoudert at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>
- Date: Fri, 11 Jan 2008 06:40:53 -0800
- Subject: Re: Q: Passing character string lengths with 64-bit addressing
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=CGXj50v6MtVQ8duElEEzS4wqlAVLugNlULet6lZme62e4UbWQ/ansoc9PRIkmK0J; h=Received:Message-ID:Date:From:Organization:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP;
- Organization: Not much.
- References: <19c433eb0801110624u354518f6h4b7b9581c41fe02d@mail.gmail.com>
FX wrote:
The character length variables you mention are always (for gfortran)
32-bit integer signed variables, so if you need to address them in
gfortran, you can use either integer(kind=4) or, in C99, int32_t
(found in header inttypes.h).
Thanks! (Actually, I am using C++. So using the C99 inttypes.h stuff
may not be available on all platforms.)
This should be mentioned in the gfortran documentation somewhere.
To my knowledge, there is no plan today to change the current
situation. Personally, I don't think having 64-bit string lengths is
very useful.
At this time, I simply need to know how it works for some code
porting. Someone else can ask for the feature. (And take the
arrows... :)
W.