Re: Nice to have feature in upcoming Fortran compilers...



In article <jExle.35000$J25.25646@xxxxxxxxxxxxxxxxxxxxxx>,
Charles Russell <SPAMworFREEwor@xxxxxxxxxxxxx> wrote:

> Richard E Maine wrote:
> It would make Fortran essentially
> > unimplementable on many of the architectures that used to be quite
> > common.
>
> I was under the impression that you could do it in software on any
> hardware, though perhaps inefficiently. If this imposed a burden on
> hardware vendors to make it efficient, there would be precedents. At
> one time it was asserted that the fortran language itself was unfairly
> biased in favor of IBM hardware.

Well, in the earliest days, it wasn't a standard at all, but a (small)
set of implementations, the first ones being on IBM hardware, so in
some sense that is a pretty safe statement. It isn't clear that all the
things that one hears are actually true (particularly when it comes to
subjective matters like "unfairly biased"). I was a bit young in '54 to
even be able to say "unfairly biased", so I've no first-hand data.

Of course, the first standards weren't started from scratch, so there
were almost bound to have been some elements of inheritance from early
implementations. How well the abstraction was done in the early
standards, I won't judge too much, though I'll note that it apparently
was done well enough so that there were quite a lot of implementations
on quite a lot of machines with, among other things, wide variation in
word sizes (not to speak of machines where the concept of a word was a
bit vague).

If it had been too tied to IBM hardware, we probably wouldn't be
discussing it right now. There are still lots of machines around that do
the old IBM floating point format, and Fortran even runs on them. But in
terms of Fortran, that's a pretty small niche today. (Some might
consider all of the Fortran market to be a niche - if so, that's a niche
of a niche).

Heck, at the moment, one might say that the Fortran standard is biased
against the old IBM floating point. There is a whole chapter ("clause"
in ISO-speak) on IEEE stuff that doesn't "fit". Sure that is all
optional, but I'd still call that a bias in that it looks bad if a
vendor has to say that they are omitting a whole chapter of the
standard, even if the standard itself allows that.

Oh, my "essentially" was to cover the case of "many things are possible
if you want to emulate the whole machine in software". I tossed it off
with a single word because I don't think it realistic. Yes, it can be
done. No, I don't think it is going to happen.

In my opinion, the odds of actually mandating an integer of exactly 8
bits are low. They clearly aren't zero, but I think they are low.
Indeed, in my personal opinion, an attempt to make it an absolute
mandate would be counterproductive to compromise on a recommendation.
Taking a "mandate or nothing" position would likely result in nothing.
(I'm not saying that you are taking such a position).

--
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
.



Relevant Pages

  • Re: A few syntax questions
    ... I think putting them in the 'action-stmt' syntax rule ... If I were to redo the bnf from scratch, ... I guess that means that a standard conforming compiler is supposed to overflow. ... I am hoping that F2003 features will regain some respect for Fortran in CS departments,, and not just be coinsidered an old archaic language for old programs, but such strong support of archaic Fortran standards is a major reason why Fortran popularity continues to dwindle. ...
    (comp.lang.fortran)
  • Re: Form k = i + j and test for overflow.
    ... Last night you suggested I was forgetting that overflow violates ... the Fortran standard. ... test that wouldn't work on the most common of implementations. ... that conforms to the Fortran standard. ...
    (comp.lang.fortran)
  • Re: conditional compile for gFortran (GCC?): newbie question
    ... The official standard for a Fortran pre-processor is Part 3, "Conditional Compilation", informally known as CoCo. ... As I mentioned in a message in this thread yesterday, there are free implementations of CoCo available on the Internet. ... Obviously, CPP and its derivatives are widely used for Fortran, but I am not sure that the usage is so universal that it counts as a "de-facto standard", except perhaps in the Unix world. ... the capabilities and behavior of the Fortran pre-processor would be under the control of either the C or C++ committee. ...
    (comp.lang.fortran)
  • Re: FOR070.DAT files appearing
    ... IMPLICIT NONE has been Standard Fortran since 1993 when the Fortran 90 ... When F90 was approved, it became the ... I'd also challenge you to find a commercial Fortran 77 compiler ...
    (comp.os.vms)
  • Re: Bugs at my web site
    ... >> I don't think it's being maintained now, but given that Fortran 77 isn't ... >what might prove fatal with a new compiler. ... >that I think they are good traditional fortran, whatever some standard might ... guess at heart I'm still a scientist rather than a Real Programmer :-) ...
    (comp.lang.fortran)