Home > Archive > Fortran > May 2005 > Re: static function ? how ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: static function ? how ?
|
|
| Arjen Markus 2005-05-26, 3:59 pm |
| beliavsky@aol.com wrote:
>
> Arjen Markus wrote:
[color=darkred]
>
> Perhaps "the GNU compiler" should be replaced with "a GNU compiler",
> since gfortran exists :).
Hm, yes, you are right - but GNU themselves promote "g95" ...
Oh well, others are far more knowledgeable on this particular
subject, so I will simply shut up ;)
>
>
> Is this part of Fortran 2003 or is it an extension specific to g95?
You can have internal routines to the main program, to individual
subroutines
and to subroutines inside a module, unless I am mistaken. You just can
not
nest them to an arbitrary level (two levels for a module, it seems).
That has been the case since Fortran 90. But I perhaps I misunderstand
your
question?
Regards,
Arjen
| |
| Richard E Maine 2005-05-26, 3:59 pm |
| In article <4295B20F.1FF7492D@wldelft.nl>,
Arjen Markus <arjen.markus@wldelft.nl> wrote:
> beliavsky@aol.com wrote:
>
> Hm, yes, you are right - but GNU themselves promote "g95" ...
Well, I'm not sure precisely what "GNU themselves" means, GNU not being
an organization. I would suspect you might mean the Free Software
Foundation, but that's not clear either. Mostly I suspect that you
aren't sure what it means either. :-(
Since gfortran is part of the GCC compiler suite, while g95 is not, I
would have thought that the opposite of your statement was more nearly
true.
I'm not meaning to express any opinion on the compilers; I'm just
puzzled about what you mean and what you base it on.
>
> That has been the case since Fortran 90. But I perhaps I misunderstand
> your question?
The same occurred to me. I saw nothing in the least bit unusual about
the code in question, given f90 or later. If Arjen misunderstood it, so
did I.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
| |
| Arjen Markus 2005-05-27, 8:57 am |
| Richard E Maine wrote:
>
> In article <4295B20F.1FF7492D@wldelft.nl>,
> Arjen Markus <arjen.markus@wldelft.nl> wrote:
>
>
> Well, I'm not sure precisely what "GNU themselves" means, GNU not being
> an organization. I would suspect you might mean the Free Software
> Foundation, but that's not clear either. Mostly I suspect that you
> aren't sure what it means either. :-(
>
Okay, I referred to the information found on http://www.gnu.org, in
relation
to the release of the GCC compiler set, version 4.0
> Since gfortran is part of the GCC compiler suite, while g95 is not, I
> would have thought that the opposite of your statement was more nearly
> true.
>
> I'm not meaning to express any opinion on the compilers; I'm just
> puzzled about what you mean and what you base it on.
>
Press articles refer to g95, not gfortran. The site I mentioned above
comes up with one link to g95 and none to gfortran - I used the
search function.
So, that is how I got the impression that g95 is the Fortran 95 compiler
of GNU ...
Regards,
Arjen
| |
| Richard E Maine 2005-05-27, 4:01 pm |
| In article <4296BFE4.10DF44C5@wldelft.nl>,
Arjen Markus <arjen.markus@wldelft.nl> wrote:
> Press articles refer to g95, not gfortran.
> The site I mentioned above
> comes up with one link to g95 and none to gfortran - I used the
> search function.
>
> So, that is how I got the impression that g95 is the Fortran 95 compiler
> of GNU ...
I've seen press articles that refer to them correctly (not that I've
perused a lot of press articles on the subject at all). Took me a while
to figure out exactly where you were probably searching; I couldn't
match your results at a top level search, but after going into the
software directory, I could. I think I see what caused that result.
Note first, that there are lots of GNU projects. GNU isn't as monolithic
a thing as all of that. I think (though I'm not 100% sure) that both g95
and gfortran can still be said to be GNU compilers. As far as I know, I
could write some completely independent compiler, do the appropriate
copyright assignments and agreements, and it also would become a GNU
compiler. So it isn't quite right to refer to "the" (singular) GNU
compiler as though there could be only one.
I think that perhaps the reason the search got results like that is
almost the opposite of what you are thinking. GFortran is part of GCC
(the most widely known GNU compiler project, and the one that recently
had its 4.0 release). Gfortran might not have shown up separately
because it is integrated into gcc instead of being a completely separate
project. G95, on the other hand, is not part of gcc, and thus shows up
on its own. At least that's what I think is happening in the search.
You might also be running into some historical artifacts. Things used to
be different before the project split. Old web pages often still stay
around.... and new ones get made by people not realizing that their
information is old.
Anyway, I'm just trying to help avoid further spreading what confusions
there might be. Though I see that the above is a bit confusing still.
I'm afraid that some elements of confusion are unfortunately inherent in
the situation. :-(
None of this is intended in any way to be a comment on the quality of
any of the compilers in question. Just on organizational and
relationship matters.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
| |
| Richard E Maine 2005-05-27, 4:01 pm |
| In article <d77llv$46d$1@gnus01.u.washington.edu>,
kargl@troutmask.apl.washington.edu (Steven G. Kargl) wrote:
> In article <4296BFE4.10DF44C5@wldelft.nl>,
> Arjen Markus <arjen.markus@wldelft.nl> writes:
>
> Please supply URL's. A top-level search at http://www.gnu.org/...
I wondered the same at first, but I think I found it after a bit of
pawing around. From the top level, select "free software directory" (or
on the right), or just go directly to <http://directory.fsf.org/>.
Searching for "fortran" there gets results like those Arjen describes.
Perhaps you are in a position to fix that, Steven? Does seem like a
search that someone might do and be mislead by.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
| |
| Andy Vaught 2005-05-27, 8:57 pm |
| >
> in particular, you should note that g95's runtime library
> is covered by the GPL not LGPL. Think about the consequence
> if you plan to distribute a binary version on some program.
That issue was fixed long ago.
Andy
|
|
|
|
|