Browse thread
interfacing FORTRAN/OCAML??
-
karine CHEVALIER-JABET
- Patrick Goldbronn - SYSCO
- William Chesters
- Xavier Leroy
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Patrick Goldbronn - SYSCO <patrick.goldbronn@c...> |
| Subject: | Re: interfacing FORTRAN/OCAML?? |
karine CHEVALIER-JABET wrote: > > Hello, > > I would like to know if interfacing FORTRAN with OCAML is possible(OCAML > calling FORTRAN) ; I read it for C, but didn t see for Fortran. Does it > mean I shoud call fortran with C then C with OCAML? > > I guess this is a FAQ... > Thank you > > Karine Chevalier-Jabet In fact it is quite the same : you must interfacing C and fortran (it compiler dependent, for the name of function). You should read the compiler user guide (SUN is good for interfacing C and fortran) You can go in http://caml.inria.fr/hump.html#ffi (ocaml fortran interface) I know INRIA works on an libraries which allow facilities to use big array outside the heap (if you have such trouble). For instance I have wrote a litle interface between C and fortran array. If you are interested, I can send it to you. Bests Regards -- ##################################### # Patrick GOLDBRONN # # CEA - DRN/DMT/SYSCO # # CE-Saclay, Bâtiment 460 # # 91191 GIF/YVETTE CEDEX (FRANCE) # # # # Tél : 01 69 08 40 66 # # Fax : 01 69 08 96 96 # #####################################