Mixed-Language PROBLEMS - MS FORTRAN 5.00/Watcom 10.6 and PDS 7.1 
Author Message
 Mixed-Language PROBLEMS - MS FORTRAN 5.00/Watcom 10.6 and PDS 7.1

I have a collection of fortran routines to generate random numbers for various
statistical distributions.  I also have access to Microsoft's FORTRAN 5.00
compiler and PDS 7.1.  Most of my code development is in PDS (Professional
Development System ... also known as Microsoft BASIC v7.1), but I would like
to use my FORTRAN functions, without the need to recode them into BASIC.

I would like to use the large memory model as well as the math chip options
(/FPi87 and /G2) for FORTRAN and be able to create a quick library for use in
PDS.  Which command line options should I use for both the FORTRAN and BASIC
compilers?  Which command line options should I use for the linker?

I also have Watcom's FORTRAN 77 v10.6 compiler ... could this be used in place
of Microsoft's FORTRAN?  I'm not sure whether Watcom's compiler creates object
code in Microsoft's OMF format ... or which format Watcom uses ...

Any help would be appreciated ...

Stefano

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Stefano Normani            | Office: E2-3313   (519) 888-4567 x3828       *

* University of Waterloo,    |                                              *
* Waterloo, Ontario, CANADA  |                                              *
* N2L-3G1                    |                                              *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Thu, 30 Sep 1999 03:00:00 GMT  
 Mixed-Language PROBLEMS - MS FORTRAN 5.00/Watcom 10.6 and PDS 7.1

Quote:

>I have a collection of FORTRAN routines to generate random numbers for various
>statistical distributions.  I also have access to Microsoft's FORTRAN 5.00
>compiler and PDS 7.1.  Most of my code development is in PDS (Professional
>Development System ... also known as Microsoft BASIC v7.1), but I would like
>to use my FORTRAN functions, without the need to recode them into BASIC.

The first place to look is in the Fortran User's Guide - there's a
section there about mixed-language programming.  It sounds like you
want to link some Fortran routines into a Basic program, so what you
should do is comile just to .OBJ files, using the "/c" option on FL.
Then, you need to figure out how and where the Basic linker takes
already-compiled files, and stuff them in there.  In terms of FPU
models (/FPi87, /FPc, etc.), just make them comparable - Fortran
may be more flexible than Basic in this regard, I don't know.

Quote:
>I also have Watcom's FORTRAN 77 v10.6 compiler ... could this be used in place
>of Microsoft's FORTRAN?  I'm not sure whether Watcom's compiler creates object
>code in Microsoft's OMF format ... or which format Watcom uses ...

Do not attempt to mix Watcom with Microsoft.  They use routines from
different libraries, and there could easily be a name collision.  The MS
Basic and Fortran compilers should have the same library core, and so
they should work.  Oh, be sure to specify both the Basic and Fortran
libraries when you link - even though most of their contents are the
same, there will always be some odd thing that has to come from one
or the other.  Good luck.


Thu, 30 Sep 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Use IMSL Fortran library with Watcom Fortran 10.6?

2. OS/2 PM and Watcom 10.6 Fortran

3. Inline assembler (pragma aux) problem with Watcom 10.6

4. Mixed Language problem?: MS Fortran PS to DEC Visual Fortran

5. Eiffel/S 1.3 with Watcom C 10.6

6. Who supports Watcom C/C++ 10.6

7. Watcom C++ 10.6 and Clipper 5.2e

8. WATCOM 10.6 (Win98)

9. MS Fortran v 5.00 - Access to serial COM ports (MS-DOS)

10. Best GUI front end for Watcom 10.6?

11. Difficulty compiling for QNX 4.25, Watcom 10.6

12. Linking tcl and tk .libs with Watcom 10.6 compiler

 

 
Powered by phpBB® Forum Software