caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ville-Pertti Keinonen <will@exomi.com>
To: Oleg Trott <oleg_trott@columbia.edu>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Caml as C-- (was: Compiling a native code OCaml library into an .so?)
Date: Thu, 20 Nov 2003 13:30:47 +0200	[thread overview]
Message-ID: <20031120113047.GC1387@exomi.com> (raw)
In-Reply-To: <200311200613.09139.oleg_trott@columbia.edu>

On Thu, Nov 20, 2003 at 06:13:09AM -0500, Oleg Trott wrote:

> Things like this make me wonder how people outside of INRIA understand the 
> inner workings of Caml compiler (enough to modify it). Just  guessing by 
> looking at the rather sparcely commented source? Or is there anything else?

I find most of it fairly easy to understand (although I haven't tried to
modify it).  Just looking at the definitions of the types for the various
representations is very enlightening.

> In particular, I'm curious if parts of Caml compiler, such as "asmcomp", could 
> be used as a sort of C--, i.e. a weakly typed backend for another language, 
> especially if the language itself is written in Caml.

It's actually called C--...did you know that already?

Look in the asmcomp and testasmcomp directories if you didn't already...

The license might be an issue in actually using the code in a compiler
for another language, though.

-------------------
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


  reply	other threads:[~2003-11-20 11:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-19 23:49 [Caml-list] Compiling a native code OCaml library into an .so? Aleksey Nogin
2003-11-20  3:33 ` Kamil Shakirov
2003-11-20  4:57   ` Aleksey Nogin
2003-11-20 11:13   ` [Caml-list] Caml as C-- (was: Compiling a native code OCaml library into an .so?) Oleg Trott
2003-11-20 11:30     ` Ville-Pertti Keinonen [this message]
2003-11-20 17:07       ` Oleg Trott
2003-11-20 11:46     ` Christian Lindig
2003-11-20 11:45       ` [Caml-list] Caml as C-- ZHAO Wei
2003-11-20 16:37       ` [Caml-list] Caml as C-- (was: Compiling a native code OCaml library into an .so?) Oleg Trott

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=20031120113047.GC1387@exomi.com \
    --to=will@exomi.com \
    --cc=caml-list@inria.fr \
    --cc=oleg_trott@columbia.edu \
    /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;
as well as URLs for NNTP newsgroup(s).