Hi,
On Fri, 20 Feb 2004, 10:07pm +0100, [log in to unmask] wrote:
> Peter Shenkin wrote:
>
> > I've never seen a large Fortran program that doesn't require
> > some services that the language doesn't provide but that
> > are provided by OS calls instead. Bindings are usually provided
> > in C. Thus, must Fortran programs must call C, and the way
> > this is done of course differs from platform to platform.
>
> Those of us who used a real operating system (VMS), instead of an
> overgrown games platform like Unix, know that this is a limitation of
> Unix, not something intrinsic in operating system interfaces.
I've worked on not only VMS, but also CMS. If you want
your code to issue system calls in these, and UNIX, too,
you have to have some sort of conditional compilation
mechanism.
In other words, any effort to develop a Fortran program
that has system calls in it for multiple OS's has
to use some sort of conditional compilation facility,
whether it's some file that you compile in that is
OS-specific or some #ifdef-like mechanism.
It doesn't matter whether the OSs involved are VMS
and CMS or UNIX and Atari.
-P.
--
Peter S. Shenkin Schrodinger, Inc.
VP, Software Development 120 W. 45th St., 32nd Floor
646 366 9555 x111 Tel New York, NY 10036
646 366 9550 FAX USERID: shenkin
http://www.schrodinger.com DOMAIN: schrodinger DOT com
Pre-arranged conf. calls: 702-759-8420 or 888-867-7084; passcode 646-366
|