From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA12054; Tue, 29 May 2001 16:15:37 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA12017 for ; Tue, 29 May 2001 16:15:36 +0200 (MET DST) Received: from mail47.fg.online.no (mail47-s.fg.online.no [148.122.161.47]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f4TEFaD22362 for ; Tue, 29 May 2001 16:15:36 +0200 (MET DST) Received: from online.no (ti34a04-0249.dialup.online.no [130.67.70.249]) by mail47.fg.online.no (8.9.3/8.9.3) with ESMTP id QAA25163 for ; Tue, 29 May 2001 16:14:35 +0200 (MET DST) Message-ID: <3B13ADD1.5C30D630@online.no> Date: Tue, 29 May 2001 16:10:25 +0200 From: Tore Lund X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Porting to EPOC References: <3B1366D0.8FAD3FEC@online.no> <20010529140045.A7610@pauillac.inria.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Xavier Leroy wrote: > > [ Cross-compiling OCaml bytecode for a runtime system containing > platform-specific external functions. ] > > > I notice there is an undocumented compiler switch -use-prims . > > Maybe this would solve my problem if I knew the format of ? > > 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! Sorry, doesn't work. I try to compile the following file: let _ = c_test ();; and all I get is this: C:\Data\ocaml>ocamlc -use-prims prims ctest.ml File "ctest.ml", line 1, characters 8-14: Unbound value c_test even though I have put c_test at the bottom of the list in prims. Any ideas? -- Tore ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr