Browse thread
[Caml-list] 32 bit floats, SSE instructions
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-06-09 (15:55) |
From: | Richard Jones <rich@a...> |
Subject: | Re: [Caml-list] 32 bit floats, SSE instructions |
On Mon, Jun 07, 2004 at 10:00:53PM +0100, Richard Jones wrote: > Is there not any work on allowing inline asm in OCaml? > > Since ocamlopt can inline code from modules, would it be possible to > create a 'fake' .cmx/.o file which would actually contain direct > assembler code to be inlined? OK, I just tried this and it doesn't work. It seems (without looking at the ocamlopt source anyway ...) that the .cmx file carries a high-level representation of the code which is actually assembled in the .o file. When I replaced just the .o file with a similar one carrying my assembler, OCaml inlined the original code which therefore must have come from the .cmx. I'm guessing that people would object to extending OCaml to allow inline asm because it would break bytecode compilation? Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment MOD_CAML lets you run type-safe Objective CAML programs inside the Apache webserver. http://www.merjis.com/developers/mod_caml/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners