The GNU fortran compiler is build on GCC and you can mix and match
objects written in C with ones in Fortran.
So if g77 can't call fork() directly (i didn't check), it certainly
can call a C routine that then calls fork().

Some sparse docs
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/g77/Interoperating-with-C-and-C_002b_002b.html#Interoperating-with-C-and-C_002b_002b

-Wayne

On Sat, Mar 8, 2008 at 8:53 PM, Rob Ludwick <[EMAIL PROTECTED]> wrote:
> fork(), vfork(), etc, are in the C library.
>
>  And I don't think fork() cares what language is running since it makes
>  an exact copy of the process in memory and restores the stack pointer,
>  etc.  Remember C and Fortran compile to assembly in the end....
>
>  So it seems you should be able to call the C fork() somehow.
>
>  --R
>
>
>
>  On Sat, 2008-03-08 at 18:57 -0500, John McKelvey wrote:
>  > Hi!
>  >
>  > I have a fortran program from a SGI SMP box that does  does coarse
>  > grained parallel stuff using "fork."   This does not work using the
>  > Intel fortran compiler [there's no fork.]  Are there linux distros
>  > that have "fork"  available in fortran?  [This obviously shows my
>  > age.]
>  >
>  > Thanks!
>  >
>  > John McKelvey
>  >
>  >
>  > _______________________________________________
>  > Fwlug mailing list
>  > [email protected]
>  > http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org
>
>
>  _______________________________________________
>  Fwlug mailing list
>  [email protected]
>  http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org
>

_______________________________________________
Fwlug mailing list
[email protected]
http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org

Reply via email to