From: mea@sparta.com (Mike Anderson)
Newsgroups: comp.os.vxworks
Subject: re: Fortran compiler
Date: Tue, 8 Sep 92 14:04:51 EDT
Organization: Lawrence Berkeley Laboratory, Berkeley CA
NNTP-Posting-Host: 128.3.112.16
Originator: daemon@vxw.ee.lbl.gov

Greetings!

> Submitted-by chip@csd.nad.northrop.com  Tue Sep  8 09:58:27 1992
> Submitted-by: Peter Ross <chip@csd.nad.northrop.com>
>  
> Hi 
> I need a fortran cross compiler for my Sun sparc to Mc680x0 (at least 68030)
> that is compatible with vxworks. I'd appreciate any info on where I might
> obtain one. Thanks 
>                 Chip
> 

  I've just gone through this effort recently and I'll give you the dump
on what I found.  First, WRS is working with Oasys for a customer to produce
a FORTRAN compiler for VxWorks.  This product should be in Beta-test by
the end of this month with shipping soon after.  To make it compatible
with the GNU environment, you need to tell the compiler to output assembler
and then assemble the file using the GNU assembler.  Easily done in 
a script file.  I've sent Oasys one of my FORTRAN benchmarks to convert
to assembly, assembled it with as68k and loaded it into VxWorks (68030 and
68040) with no problems.  Oasys claims to be working on having an 
integrated debugger facility for VxWorks using both their FORTRAN and
their C++ ready to be shipped with the FORTRAN compiler when it is
released.

  Another other option is to grab the FORTRAN-to-C translator from
att.research.com and hack it to work with VxWorks.  I have done this
and I have a working translator that can target both 68030s and 68040s
running VxWorks.  I haven't tested it thoroughly, but I did take 5,000
lines of FORTRAN code and pass it through the translator and then
through the GNU compiler and run it on VxWorks with zero modifications
along the way :-).  The code was very floating-point intensive with some
formatted I/O.  The way the translator handled things like named common
blocks was most interesting.  It doesn't clean up the code as far as
nasties like GOTOs are concerned, but it sure goes a long way towards a
reasonable savings in effort.  I also understand there are commercial
products that do this sort of thing that can do some of the restructuring.
I'm afraid that I don't have any info about how good they are for 
VxWorks.

Hope this helps,

==============================================================================
    AAAA  D D    D D    EEEEE   M   M  TM  // AAAA RRRR  TTTTTT SSSSS EEEEE TM
   A   A  D   D  D   D  E      M M M M    // A   A R   R   TT   S     E
  AAAAAA  D   D  D   D  EEEEE  M  M  M   // AAAAAA RRRR    TT    SSS  EEEEE
 A     A  D   D  D   D  E      M     M  // A     A R  R    TT       S E
A      A  D D    D D    EEEEE  M     M // A      A R   R   TT   SSSSS EEEEE

Process Distribution/Control and Communications for Distributed Systems

Mike Anderson                       Voice: (703) 448-0210 ext. 235
Director, ADDEM(TM) Project Office  FAX:   (703) 734-3323
SPARTA, Inc.                        EMAIL: mea@sparta.com
Suite 900                     
7926 Jones Branch Drive        "It is useless for sheep to pass resolutions 
McLean, VA  22102               in favor of vegetarianism while wolves remain
                                of a different opinion."

                                   William R. Inge, D.D.
==============================================================================