Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
New C interfaces
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1997-03-12 (16:23)
From: Andrew Conway <arc@s...>
Subject: New C interfaces

Dear o'caml community,

I have been reading the 1.04 documentation on the C language interface,
and it occured to me that one could get library routined compiled with ocamlopt
to live in harmony with the top level by compiling the library routines
using ocamlopt -output-obj, and then linking them into the toplevel
using -custom. It looks messy but practical. 

Are there any problems with this, apart from the hassle? 
Does this make multiple copies of the garbage collector?

I have a small number of numeric routines that I link into the
top level, and it would be very nice to have them operating more

(By the way: there are still many references to caml light in chapter 13.)

[ resume:

Je pense qu'on peut utiliser "ocamlopt -output-obj" et "ocamlmktop -custom"
pour vitesse. Pourquoi pas?