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
[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: -- (:)
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  Archives: