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 BAA05563; Thu, 2 Aug 2001 01:45:44 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA05577 for ; Thu, 2 Aug 2001 01:45:43 +0200 (MET DST) Received: from smtp3-cm.mail.eni.net (smtp3-cm.mail.eni.net [216.133.226.136]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f71Njgn09672 for ; Thu, 2 Aug 2001 01:45:42 +0200 (MET DST) Received: from CHECKERATH (node-d8e9cca2.powerinter.net [216.233.204.162]) by smtp3-cm.mail.eni.net (8.9.3/8.9.3) with SMTP id QAA29668 for ; Wed, 1 Aug 2001 16:45:40 -0700 Date: Wed, 1 Aug 2001 16:45:40 -0700 Message-Id: <200108012345.QAA29668@smtp3-cm.mail.eni.net> From: Chris Hecker To: caml-list@inria.fr Subject: [Caml-list] calling native code from bytecode? Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is there any way to compile part of a project in bytecode and another part with the native compiler and link them? It seems odd that you can call C from bytecode but not other caml code. The gc and everything is the same between the asm and bytecode runtimes, no? Are datastructures in memory (except code, of course) compatible? Basically, I've got some numerical code that I'd like to compile to native code for performance, but I'd like to keep most of the non-performance stuff in bytecode so I can use the toplevel and whatnot. I suppose I could do some sort of heinous bytecode -> C -> native code shim, but it seems like this could "just work". Obviously, the holy grail would be complete intermingling of bytecode and native code, and the linker just figures it out and does the right thing. That would rock. But, I'd settle for bytecode -> native calls only at this point. Thoughts? Chris ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr