Re: How to compile/link Fortran for 'portable' executable to down-level OVMS?

From: jlsue (jefflsxxxz_at_sbcglobal.net)
Date: 06/11/03


Date: Wed, 11 Jun 2003 14:08:56 GMT

On Sun, 8 Jun 2003 16:04:09 -0600, "rlfitch" <rlfitch@peakpeak.com> wrote:

>Need help in creating a 'portable' executable where the program
>development is in Fortran on OVMS 7.2 with F90 compiler and then port
>(copy) the executable to OVMS 6.2 that has F77 compiler. I believe that
>the key is in the linking (rather than in the compile) but not sure.
>

We did something similar to this on a project I worked on back in 1993.
The compiler on the V6.2 system isn't important if you're not compiling
there.

One or two possibilities:

1. Copy the linked object modules to the V6.2 system and link there.
        This is the preferrable solution to creating the executables that
        will run on V6.2.

2. Figure out each and every shareable image used by the compiled
        program, copy them from the V6.2 system to some directory on the
        V7.2 system (NOT SYS$SHARE). Then, during the linking process,
        re-define SYS$SHARE (at a minimum, there may be others) for the
        process. *IF* it works, you should end up with an executable that
        runs on V6.2 and V7.2. No guarantees.

        Note: This can be very tricky, is not supported, and may take
        quite a bit of work to get right, if you even can get it to work
        right.