Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7001015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:44:55+00:00 2026-05-27T20:44:55+00:00

Today I was reading code from some very popular numerical libraries written in FORTRAN

  • 0

Today I was reading code from some very popular numerical libraries written in FORTRAN 77 such as QUADPACK (last updated in 1987), and I was wondering if there is any reason not to rewrite those libraries in Fortran 90 apart from the big amount of work it would pose, given the great improvements Fortran 90 brought to the language, including free-form source, better control structures so GO TO could be forgotten, vectorization, interfaces and so on.

Is it because FORTRAN 77 compilers produce more optimized code, maybe it is better for parallel execution? Notice that I’m not even talking about Fortran 2003 for example, which is only 8 years old: I’m talking about Fortran 90, so I assume it has enough widespread and the compilers are ready. I don’t have contact with the industry, anyway.

Edit: janneb is right: LAPACK is actually written in Fortran 90.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:44:55+00:00Added an answer on May 27, 2026 at 8:44 pm

    Well, like “pst” mentioned, the “big amount of work it would pose” is a pretty major reason.

    Some further minor points:

    • LAPACK IS Fortran 90, these days, in the sense that the latest version no longer compiles with a F77 compiler. That being said, it’s far from a rewrite, only a few things that were changed.

    • Most of the F90 features you mention make it easier and faster to write robust programs, it doesn’t necessary make the resulting programs any faster.

    • It wasn’t that long ago that free F90 compilers were not available (plenty of people used g77!), so for a widely used library like LAPACK not using F90 features was likely a conscious decision.

    • A F77 compiler does not, generally, produce faster code than a F90 compiler. If not for any other reason, then because it’s likely obsolete and cannot optimize for the latest CPU’s. A modern Fortran compiler might create faster code from F77 than from an equivalent F90 program which makes extensive use of things like pointers etc., but that is highly dependent on the program in question (e.g. using pointers and fancier data structures may allow usage of better algorithms, allowing the F90 program to produce results faster even though it might execute at a lower average utilization of the CPU arithmetic units).

    • Vectorization, if by this you mean the F90+ array syntax, is mostly a programmer convenience issue rather than allowing faster code. A competent compiler will vectorize the equivalent DO loop just as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for some libraries in delphi to programming and reading from RFID
I just finished reading the Functions chapter from Uncle Bob's Clean Code . The
I came across this code today whilst reading Accelerated GWT (Gupta) - page 151
I was reading through some code (C, if it makes a difference to anyone)
I am very new to Haskell. Today when I reading the book and practice
Hey, I am reading about js, jquery & dom from few weeks but today
Some of what I've been reading about this yesterday and today: (SO) Should you
I was reading today question on IDEs fo C++, and there are very good
So I ran into a situation today where some production code was failing precisely
Today out of curiosity, i tried something very weird: The Code : int num

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.