English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Porting to EPOC
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-05-29 (12:25)
From: Xavier Leroy <xleroy@p...>
Subject: Re: [Caml-list] Porting to EPOC
[ Cross-compiling OCaml bytecode for a runtime system containing
  platform-specific external functions. ]

> I notice there is an undocumented compiler switch -use-prims <file>. 
> Maybe this would solve my problem if I knew the format of <file>?

Yes, -use-prims is exactly what you need.  The format is one C
function name per line, in the exact order in which they appear in the
table cprim[] in byterun/prims.c.  

Even easier: building the runtime system in byterun produces the file
byterun/primitives, which happens to have exactly the right format.  Whopee!

Have fun with Epoc,

- Xavier Leroy
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr