caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] calling native code from bytecode?
@ 2001-08-01 23:45 Chris Hecker
  2001-08-03 12:03 ` Xavier Leroy
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Hecker @ 2001-08-01 23:45 UTC (permalink / raw)
  To: caml-list


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-08-14  7:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-01 23:45 [Caml-list] calling native code from bytecode? Chris Hecker
2001-08-03 12:03 ` Xavier Leroy
2001-08-03 14:31   ` Chris Hecker
2001-08-08  8:46     ` Xavier Leroy
2001-08-08 18:34       ` Chris Hecker
2001-08-09  6:57       ` Florian Hars
2001-08-14 13:34       ` Fabrice Le Fessant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).