From: Dmitry Bely <dbely@mail.ru>
To: caml-list@inria.fr
Subject: Re: [Caml-list] ocamlopt / ocaml -custom and C compiler
Date: Mon, 21 Oct 2002 17:46:24 +0400 [thread overview]
Message-ID: <3cqzlxan.fsf@mail.ru> (raw)
In-Reply-To: <20021021151819.D12164@pauillac.inria.fr> (Xavier Leroy's message of "Mon, 21 Oct 2002 15:18:19 +0200")
Xavier Leroy <xavier.leroy@inria.fr> writes:
>> BTW, why Ocaml developers decided that ocamlopt should generate
>> camlprim?.c in C, but not directly in Assembler?
>
> Unless I'm mistaken, ocamlopt doesn't generate a camlprim.c file;
> ocamlc -custom does. The reason for going through C in this case is
> that ocamlc has no knowledge of the assembly language for the
> processor: ocamlc is designed to work for any system that provides an
> ANSI C compiler.
Sorry, my mistake. But ocamlopt uses C compiler for linking. Why not to use
the link utility itself (say, link.exe for MSVC build)?
>> This is especially inconvenient for
>> Windows users where C compiler is not the part of OS distribution and
>> should be bought separately...
>
> We have addressed this issue in at least two different ways. One is
> the dynamic loading of C/Caml stub code, as implemented since release
> 3.04. Now is the time for external C libraries to use this mechanism,
> especially if they are to run under Windows. The second answer to
> this problem is the Mingw port. Don't complain about lack of options :-)
I am aware of MinGW port :-), but thank you for the detailed explanation.
- Dmitry Bely
-------------------
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
next prev parent reply other threads:[~2002-10-21 13:46 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-18 9:35 [Caml-list] Is Caml a fraud ( especially on Windows )? Thaddeus L. Olczyk
2002-10-18 10:25 ` Remi VANICAT
2002-10-18 15:42 ` Thaddeus L. Olczyk
2002-10-21 10:15 ` [Caml-list] ocamlopt / ocaml -custom and C compiler Dmitry Bely
2002-10-21 13:18 ` Xavier Leroy
2002-10-21 13:46 ` Dmitry Bely [this message]
2002-10-18 10:56 ` [Caml-list] Is Caml a fraud ( especially on Windows )? Sven Luther
2002-10-18 15:42 ` Thaddeus L. Olczyk
2002-10-18 16:25 ` Sven Luther
2002-10-18 16:54 ` Alessandro Baretta
2002-10-18 11:25 ` Maxence Guesdon
2002-10-18 11:44 ` [Caml-list] Re: "ocaml_beginners"::[] " Joaquin Cuenca Abela
2002-10-18 19:03 ` Thaddeus L. Olczyk
2002-10-19 0:08 ` Oleg
2002-10-19 3:57 ` Thaddeus L. Olczyk
2002-10-18 13:23 ` [Caml-list] " Pierre Weis
2002-10-18 15:40 ` AC
2002-10-18 19:02 ` Thaddeus L. Olczyk
2002-10-18 20:56 ` Pierre Weis
2002-10-18 16:34 ` Alessandro Baretta
2002-10-18 18:43 ` Issac Trotts
2002-10-18 20:21 ` Damien Doligez
[not found] ` <20021018132416.3f89f744.maxence.guesdon@inria.fr>
[not found] ` <3db34c45.939491921@smtp.interaccess.com>
2002-10-19 0:53 ` Maxence Guesdon
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=3cqzlxan.fsf@mail.ru \
--to=dbely@mail.ru \
--cc=caml-list@inria.fr \
/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