From: Eray Ozkural <examachine@gmail.com>
To: Jon Harrop <jonathandeanharrop@googlemail.com>
Cc: Benedikt Meurer <benedikt.meurer@googlemail.com>,
caml-list@yquem.inria.fr
Subject: Re: [Caml-list] OCamlJIT2 vs. OCamlJIT
Date: Thu, 2 Dec 2010 03:17:20 +0200 [thread overview]
Message-ID: <AANLkTikr2M61MoxcHVhU5SkFRZpbe_iSs=DV9LWJoo2r@mail.gmail.com> (raw)
In-Reply-To: <0b9301cb91a3$8f42fd60$adc8f820$@com>
[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]
On Thu, Dec 2, 2010 at 12:03 AM, Jon Harrop <
jonathandeanharrop@googlemail.com> wrote:
>
> >
> > As does assembler, so even more reasons to emit assembler?
>
> LLVM makes it a *lot* easier to generate efficient code, of course.
Just like the way gcc is using a hierarchy of program representations from
high-level to low-level, an ocaml compiler could in principle perform type
and language specific optimization passes in the high-level (cmm for
instance) and then emit llvm code, without any loss of efficiency, I think.
Still, I have to agree with other posters stating that a compiler backend
written in ocaml is preferable. I agree, if not only for the reason that I
know from experience it would be 10 times easier to write in ocaml some of
the passes I have had to deal with in C++. Even working with symbols is
quite awkward in C++. While on the other hand, libraries like boost can help
at times, but it is nothing we cannot replicate in ocaml. As a compiler
developer, I would be most intrigued in profiling and static analysis
information represented in ocaml.
I don't see why hybrids are a bad idea, though. If you see LLVM becoming an
industry standard, then, of course it's worth supporting. It means you'll
target new architectures with no effort.
Best,
--
Eray Ozkural, PhD candidate. Comp. Sci. Dept., Bilkent University, Ankara
http://groups.yahoo.com/group/ai-philosophy
http://myspace.com/arizanesil http://myspace.com/malfunct
[-- Attachment #2: Type: text/html, Size: 2003 bytes --]
next prev parent reply other threads:[~2010-12-02 1:17 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-30 8:36 Benedikt Meurer
2010-11-30 10:48 ` [Caml-list] " Török Edwin
2010-11-30 10:55 ` Benedikt Meurer
2010-11-30 17:01 ` bluestorm
2010-11-30 17:26 ` Török Edwin
2010-11-30 18:27 ` Basile Starynkevitch
2010-11-30 17:29 ` Benedikt Meurer
2010-11-30 17:32 ` Yoann Padioleau
2010-11-30 22:06 ` Jon Harrop
2010-11-30 22:48 ` Benedikt Meurer
2010-12-01 14:11 ` Jon Harrop
2010-12-01 15:00 ` Benedikt Meurer
2010-12-01 22:03 ` Jon Harrop
2010-12-02 1:17 ` Eray Ozkural [this message]
2010-12-03 10:03 ` ocamlopt LLVM support (Was: [Caml-list] OCamlJIT2 vs. OCamlJIT) Benedikt Meurer
2010-12-03 13:34 ` Till Varoquaux
2010-12-03 13:41 ` Eray Ozkural
2010-12-03 14:06 ` Török Edwin
2010-12-03 21:16 ` Jon Harrop
2010-12-05 16:44 ` Benedikt Meurer
2010-12-03 14:32 ` Philippe Strauss
2010-12-03 21:22 ` Jon Harrop
2010-12-03 21:45 ` Philippe Strauss
2010-12-03 15:32 ` Michael Ekstrand
2010-12-03 21:34 ` Jon Harrop
2010-12-03 20:07 ` Jon Harrop
2010-12-05 16:37 ` Benedikt Meurer
2010-12-05 16:57 ` Török Edwin
2010-12-05 20:54 ` Benedikt Meurer
2010-12-05 20:12 ` Jon Harrop
2010-12-05 21:21 ` Benedikt Meurer
2010-12-05 21:44 ` Benedikt Meurer
2010-12-06 22:38 ` Jon Harrop
2010-12-05 22:41 ` Erik de Castro Lopo
2010-12-05 22:34 ` Erik de Castro Lopo
2010-12-06 8:27 ` Benedikt Meurer
2010-12-06 9:28 ` David Rajchenbach-Teller
2010-12-06 11:08 ` Richard Jones
2010-12-06 20:18 ` Jon Harrop
2010-12-01 0:16 ` [Caml-list] OCamlJIT2 vs. OCamlJIT Erik de Castro Lopo
2010-12-01 1:34 ` Yoann Padioleau
2010-12-01 12:58 ` Jon Harrop
2010-12-01 13:55 ` ivan chollet
2010-11-30 21:19 ` Jon Harrop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTikr2M61MoxcHVhU5SkFRZpbe_iSs=DV9LWJoo2r@mail.gmail.com' \
--to=examachine@gmail.com \
--cc=benedikt.meurer@googlemail.com \
--cc=caml-list@yquem.inria.fr \
--cc=jonathandeanharrop@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox