List Info

Thread: Using Fortran to Link Executable Main




Using Fortran to Link Executable Main
user name
2006-04-26 09:16:20
On Wednesday 26 April 2006 13:01, ANDREW MARLOW, BLOOMBERG/
bond OF wrote:

> No. (b)jam has insufficient support for FORTRAN,
> at least last time I looked. It needs to be able
> to calculate build dependencies by processing
> include stmts, similar to what it does for #include
> with C and C++ source. And of course, as in C/C++,
> a FORTRAN header may include one or more other FORTRAN
headers.

Adding dependency scanning for fortran should be easy to
somebody who knows 
the syntax. The c scanner in builtin.jam is a good base, so
one has to move 
declaration of fortran type of tools/types/fortran.jam,
copy-paste the c 
scanner to that file, and adjust the regular expressions
used for scanning.

Of course, I can help with that, but I'm not sure I even
have fortran compiler 
anywhere, so can't do it myself.

- Volodya

-- 
Vladimir Prus
http://vladimir_pru
s.blogspot.com
Boost.Build V2: http://boost.org/boost-
build2
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Using Fortran to Link Executable Main
user name
2006-04-27 22:51:02
On Apr 26, 2006, at 3:16 AM, Vladimir Prus wrote:

> On Wednesday 26 April 2006 13:01, ANDREW MARLOW,
BLOOMBERG/ bond OF 
> wrote:
>
>> No. (b)jam has insufficient support for FORTRAN,
>> at least last time I looked. It needs to be able
>> to calculate build dependencies by processing
>> include stmts, similar to what it does for #include
>> with C and C++ source. And of course, as in C/C++,
>> a FORTRAN header may include one or more other
FORTRAN headers.

In our case, all of our Fortran is 77 so we always invoke
the Fortran 
compiler to preprocess the Fortran source with the C
preprocessor 
(cpp).  This allows use to use #define and #include in our
Fortran 
source.  Naturally this won't work in all cases.

> Adding dependency scanning for fortran should be easy
to somebody who 
> knows
> the syntax. The c scanner in builtin.jam is a good
base, so one has to 
> move
> declaration of fortran type of tools/types/fortran.jam,
copy-paste the 
> c
> scanner to that file, and adjust the regular
expressions used for 
> scanning.

I'll give this a try and let you know how it goes.

-- Noel


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )