Will Algorithm written in OCaml compiled from C be Faster than Algorithm written in Pure C code?

Posted by Ole Jak on Stack Overflow See other posts from Stack Overflow or by Ole Jak
Published on 2010-04-15T05:41:25Z Indexed on 2010/04/15 5:43 UTC
Read the original article Hit count: 189

Filed under:
|
|
|

So I have some cool Image Processing algorithm. I have written it in OCaml. It performs well. I now I can compile it as C code with such command ocamlc -output-obj -o foo.c foo.ml (I have a situation where I am not alowed to use OCaml compiler to bild my programm for my arcetecture, I can use only specialy modified gcc. so I will compile that programm with sometyhing like gcc -L/usr/lib/ocaml foo.c -lcamlrun -lm -lncurses and Itll run on my archetecture.)

I want to know in general case will my OCaml code compiled into C run faster than algorithm implemented in pure C?

© Stack Overflow or respective owner

Related posts about ocaml

Related posts about c