For Programmers: Free Programming Magazines  


Home > Archive > Fortran > January 2006 > Open Watcom Fortran compiler help needed









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 Open Watcom Fortran compiler help needed
Lynn McGuire

2006-01-30, 7:02 pm

The Open Watcom open source compiler project, www.openwatcom.org ,
needs help in improving the Fortran compiler from F77 to F90/F95/F2k3.
Also needed is help in porting the Fortran compiler runtime library to
Linux and to AMD64. Most of the compiler internals and runtime library
are written in C code. The Open Watcom compilers and linker currently
support Dos16, Dos32, Win16, Win32, OS/2 and Netware 4. The Linux
porting project is about 75% complete but needs a lot of "cleanup".

An article on improving the C and C++ compilers is at
http://www.theinquirer.net/?article=29332 . Please note that any code
generation improvements in the C and C++ compilers will automatically
accrue to the Fortran compiler since all the Open Watcom compilers use
the same code generator and code optimizer.

The Fortran compiler is currently at the F77 level but already has many
F90 improvements added. A few other improvements are also needed
such as the Integer*8, Logical*8 and Real*16 data types.

Now is your chance to get experience working on what used to to be
the premier compiler for the PC environment. With a lot of work <g>,
that place can be regained.

Sincerely,
Lynn McGuire


max

2006-01-30, 7:02 pm


"Lynn McGuire" <nospam@nospam.com> wrote in message
news:11tseaojlt9amaa@corp.supernews.com...
> The Open Watcom open source compiler project, www.openwatcom.org ,
> needs help in improving the Fortran compiler from F77 to F90/F95/F2k3.
> Also needed is help in porting the Fortran compiler runtime library to
> Linux and to AMD64. Most of the compiler internals and runtime library
> are written in C code. The Open Watcom compilers and linker currently
> support Dos16, Dos32, Win16, Win32, OS/2 and Netware 4. The Linux
> porting project is about 75% complete but needs a lot of "cleanup".
>
> An article on improving the C and C++ compilers is at
> http://www.theinquirer.net/?article=29332 . Please note that any code
> generation improvements in the C and C++ compilers will automatically
> accrue to the Fortran compiler since all the Open Watcom compilers use
> the same code generator and code optimizer.
>
> The Fortran compiler is currently at the F77 level but already has many
> F90 improvements added. A few other improvements are also needed
> such as the Integer*8, Logical*8 and Real*16 data types.
>
> Now is your chance to get experience working on what used to to be
> the premier compiler for the PC environment. With a lot of work <g>,
> that place can be regained.
>
> Sincerely,
> Lynn McGuire
>
>


My skills are not compiler development, so I'm probably not much use - but
but I'm puzzled about OpenWatcom:

* What kind of people are using the Fortran compiler?
Supporting legacy Watcom Fortran code, with Watcom extensions?
(and not really interested in any real development in the compiler?)
Doing any new work in Watcom Fortran?

* Can the OpenWatcom project inherit any code from GNU Fortran of g95?

* Should OpenWatcom consider dropping the Fortran and trying to make
themselves compatible with GNU GCC, so that gfortran & g95 can just plug in?

* Why would you want LOGICAL * 8? Why not just LOGICAL? I can understand
INTEGER * 8 and REAL * 16; is there already underlying support in the
compiler back-end?




Kevin G. Rhoads

2006-01-30, 7:02 pm

>* Why would you want LOGICAL * 8? Why not just LOGICAL? I can understand
>INTEGER * 8 and REAL * 16; is there already underlying support in the
>compiler back-end?


There are legacy codes that equivalence (i.e., map, union) INTEGER and LOGICAL onto
the same storage. Having identical lengths avoids array index funnies.
Kevin G. Rhoads

2006-01-30, 7:02 pm

>* What kind of people are using the Fortran compiler?
> Supporting legacy Watcom Fortran code, with Watcom extensions?
>(and not really interested in any real development in the compiler?)
> Doing any new work in Watcom Fortran?


Yes, no and Yes.

It is not "not interested in any real development in the compiler", it is rather
too steep a learning curve for most Fortran people to make effective contributions.
At least those of us with day jobs. ;-) And then there are some, like me, with
multiple day jobs ;-), and the resulting serious lack of spare time.

The C and C++ sides are being upgraded, the F77 side (relatively) languishes.

>* Should OpenWatcom consider dropping the Fortran and trying to make
>themselves compatible with GNU GCC, so that gfortran & g95 can just plug in?

With all due respect - Blecchh! GNU compilers are fine and dandy, but they
aren't the same. FOr one thing, those of us who need embedded dev support
(and think that embedded 32 bit OSes are grotesque overkill for many things)
enjoy the 16 bit real mode DOS support. GNU compilers really won't do anything
less than 32 bits, even DJDelorie abandoned his 16 port attempts (LONG ago).

The GNU compiler suites have certain strengths and weaknesses, OW has a different
mix of these.
Lynn McGuire

2006-01-30, 9:57 pm

> * What kind of people are using the Fortran compiler?
> Supporting legacy Watcom Fortran code, with Watcom extensions?
> (and not really interested in any real development in the compiler?)


Yup, you got us. I have fixed a couple of bugs in the runtime library
but that is it. Dont know about the other users. BTW, we build our
calculation engine with OW: 550,000 lines of f77 code and 10,000
lines of c code.

> Doing any new work in Watcom Fortran?


All the time for us. But we may move to to Intel Fortran someday since
the compiler is somewhat better (more diagnostics) and can be built
with Visual C++ (we may merge our calculation engine and our C++ user
interface - and moon is made of green cheese <g> ).

> * Can the OpenWatcom project inherit any code from GNU Fortran of g95?


Dont have a clue but I highly doubt it.

> * Should OpenWatcom consider dropping the Fortran and trying to make



It may happen. The source code maintainer would like to reduce the
scope of OW.

> themselves compatible with GNU GCC, so that gfortran & g95 can just plug in?


That might be a whole lot of work. I have heard the OW debugger is
much better than GDB though. Supposedly the OW debugger is
already compatible with GCC on Linux (but I have not witnessed this).

> * Why would you want LOGICAL * 8? Why not just LOGICAL? I can understand
> INTEGER * 8 and REAL * 16; is there already underlying support in the
> compiler back-end?


So that you can:
integer*8 intarrary (100)
logical*8 logarray (100)
equivalence (intarray, logarray)

Yes and No, OW C supports I*8 but it does not support R*16 (that I know of).

BTW, did I mention that the code to build Open Watcom is over 1,000,000
lines of code. 1.95 GB and contains a couple of internal languages ? The
OW compilers generate "intermediate" code which the code generator
converts into optimized / unoptimized machine language.

Lynn


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com