Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.fortran > #73791

Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1

From scott@slp53.sl.home (Scott Lurndal)
Subject Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1
Newsgroups comp.lang.fortran, comp.lang.c++
References <tj4egb$u68$1@gioia.aioe.org> <84aed433-6586-41af-b3d0-28dd17f9450bn@googlegroups.com> <tjc6t5$2hrkt$1@dont-email.me> <35aea1e9-10eb-4949-993f-70eaab092237n@googlegroups.com> <tjd2gj$k1i$1@gioia.aioe.org>
Message-ID <TYw6L.80940$R_o7.34451@fx33.iad> (permalink)
Organization UsenetServer - www.usenetserver.com
Date 2022-10-27 14:54 +0000

Cross-posted to 2 groups.

Show all headers | View raw


Lynn McGuire <lynnmcguire5@gmail.com> writes:
>On 10/26/2022 7:59 PM, gah4 wrote:
>> On Wednesday, October 26, 2022 at 1:56:09 PM UTC-7, Lynn McGuire wrote:
>> 
>> (snip)
>> 
>>> We used three features in our F66 / F77 code which are turning out to be
>>> problematic in porting to a new Fortran compiler that supports 64 bit
>>> software. The first is the carriage control option in printing to
>>> stdout or a file. This was never a Fortran standard feature but
>>> everyone used it back in the 1960s, 1970s, and 1980s.
>> 
>> It is in the Fortran 66 standard with "when formatted records are
>> prepared for printing".  For one, you could argue that not all are
>> being prepared for printing, at least not in the Fortran 66 sense.
>> 
>> For IBM OS/360 and successors, it is not part of Fortran but of
>> the OS.  If the DCB has RECFM=FBA you get them, if FB you don't.
>> 
>> But the is reminding me of a Fortran to C port in about 1987.
>> 
>> The C code had a tendency to write the '\n' at the beginning
>> of a printf() call, instead of at the end.  Sometime later, those
>> all got fixed, but it was related to the way that Fortran I/O
>> always starts on a new line, and C doesn't do that.
>> 
>>> This killed our
>>> port to gfortran several years ago but it is now supported there
>>> reputedly. We are ripping it out of our formats as a part of our
>>> conversion to C++.
>> 
>> Well, the C/Unix tradition was to write '\f' (form feed characters)
>> to the file.  I always thought that seemed less standardized
>> than ASA characters.  Also, there is a Unix program to convert
>> from ASA characters.
>> 
>> In any case, yes, I always found ASA control characters funny
>> when using interactive terminals for output devices.  They are
>> fine for line printers, though.
>> 
>> (snip)
>>> Almost all of the Fortran compilers are now free. This is a bad sign,
>>> especially since Intel Fortran, the premier Fortran compiler, just
>>> jumped to free. To me, this says that future of Fortran is cloudy at best.
>> 
>> Seems to me like web browsers are now always free.  Pay ones can't
>> compete with free ones.
>> 
>>> Nothing in this world is perfect but moving to a single programming
>>> language should help us in the long run. Our software is embeddable in
>>> Excel or can embed Excel in itself, all my glue code is in C++ which
>>> really points the direction to me.
>> 
>> I think if I was in the mood for doing it, it would be Java and not C++,
>> but then that is just me.
>
>Would you really write a 750,000 line calculation engine in Java ?
>

I wouldn't have written a 750,000 line engine in any language;
not as a single module anyway.

You can probably do the whole thing in something like MatLab
in a couple hundred lines :-)	

Back to comp.lang.fortran | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-23 17:16 -0500
  Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Jeff Ryman <rymanjc@outlook.com> - 2022-10-26 09:38 -0700
    Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 gah4 <gah4@u.washington.edu> - 2022-10-26 12:55 -0700
    Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-26 15:56 -0500
      Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 gah4 <gah4@u.washington.edu> - 2022-10-26 17:59 -0700
        Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-26 23:47 -0500
          Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Robin Vowels <robin.vowels@gmail.com> - 2022-10-27 00:56 -0700
            Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-29 00:05 -0500
              Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Thomas Koenig <tkoenig@netcologne.de> - 2022-10-29 14:08 +0000
                Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-29 13:59 -0500
                Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Gary Scott <garylscott@sbcglobal.net> - 2022-10-29 14:13 -0500
                Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-30 15:05 -0500
          Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 scott@slp53.sl.home (Scott Lurndal) - 2022-10-27 14:54 +0000
            Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-27 14:08 -0500
        Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Robin Vowels <robin.vowels@gmail.com> - 2022-10-27 00:53 -0700
      Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Thomas Koenig <tkoenig@netcologne.de> - 2022-10-27 18:21 +0000
        Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-27 14:00 -0500
        Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 gah4 <gah4@u.washington.edu> - 2022-10-28 02:24 -0700
        Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-29 14:40 -0500
      Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Beliavsky <beliavsky@aol.com> - 2022-10-27 12:52 -0700
  Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-10-26 22:26 -0700
    Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-27 14:01 -0500
  Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 gah4 <gah4@u.washington.edu> - 2022-10-27 01:51 -0700
    Re: converting a 700,000+ line Fortran 77 plus 50,000+ line C++ program to C++, part 1 Lynn McGuire <lynnmcguire5@gmail.com> - 2022-10-27 14:07 -0500

csiph-web