Deutsch   English   Français   Italiano  
<vek2ui$1bip4$5@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lynn McGuire <lynnmcguire5@gmail.com>
Newsgroups: comp.lang.fortran
Subject: Re: Is there a way in Fortran to designate an integer value as
 integer*8 ?
Date: Mon, 14 Oct 2024 16:37:26 -0500
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <vek2ui$1bip4$5@dont-email.me>
References: <vdict2$339ak$1@dont-email.me> <vdir24$35104$1@dont-email.me>
 <vdk718$3bulb$1@dont-email.me> <vdl6fi$3jra3$2@dont-email.me>
 <vdlfpl$3l0f5$1@dont-email.me> <vdmbml$3p2dv$1@dont-email.me>
 <vdmrgc$3rih7$2@dont-email.me> <vegdr2$m3av$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 14 Oct 2024 23:37:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9c455a7fe89464cf8d5962b1adccebeb";
	logging-data="1428260"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18DbCamu6a84winW5xVX/uchsHMh2Qx9BA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JaHqeU15m8ogDASCx5yYhG6oDCY=
In-Reply-To: <vegdr2$m3av$1@dont-email.me>
Content-Language: en-US
Bytes: 2857

On 10/13/2024 7:18 AM, Thomas Koenig wrote:
> Lynn McGuire <lynnmcguire5@gmail.com> schrieb:
> 
>> I have 197 common blocks included from dedicated files and a massive
>> number of equivalences all over the place.  Several of the equivalences
>> are actually in the common block files.  The equivalences have made the
>> eventual C++ conversion of the Fortran code tricky.
> 
> What do you use the equivalences for?  Saving memory? Then this
> should not be a large issue on modern machines.
> 
> If you are using them for tricks with type conversion, then you
> are on thin ice already, and have been since Fortran 66.
> 
> And if you have a few big arrays, then changing those to ALLOCATABLE
> and allocating them at runtime might well be straightforward.

"DYNOSOR: a set of subroutines for dynamic memory organization in 
Fortran programs"
    https://dl.acm.org/doi/10.1145/954654.954661

One of our guys went to an ACM conference in 1977 and came back with 
this paper.  It was the answer to our memory problems on the Univac 
1108, the CDC 7600, and later the IBM 370.

I converted the memory allocation scheme from a common block in 1992 ??? 
to using the C malloc, realloc, and free library functions.  Worked like 
a champ on Unix, Vax VMS, IBM mainframes, and PC DOS using various F77 
compilers.

Before that I was having to ship special special versions to certain 
customers that were extensively using our builtin Fortran interpreter 
for custom calculations to design highly specialized chemical reactors.

Lynn